-
Notifications
You must be signed in to change notification settings - Fork 255
ERROR: window.history.state is null #713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have the exact same thing happening to my site. I assume its a global issue. |
did you manage to fix it? |
clicking on an anchor tag trigger this error.
I removed it and it fixed the problem. |
I think the error is related to this one. |
@andrewperoramas I had the same issue with scrollRegions and fixed it like this for now, in your app.tsx: if (!window.history.state) {
window.history.replaceState({ scrollRegions: [] }, '');
} |
I'll have to try that. |
Thank you. I'm running into this same issue with inertiajs/inertia-laravel v2.0.1, and applying the above workaround to the app.jsx/tsx file resolved it. For me, the error only triggers on certain pages on Chrome for android following these steps:
Upon chrome loading the same page opened in step 1, The proper fix has been applied in inertiajs/inertia, but no corresponding patch in the laravel package yet |
I use SSR.
I use inertia v2
I use laravel octane
What's causing this? I can't see any fix in google.
The text was updated successfully, but these errors were encountered: