We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the browser back button, routing still works, but it throws an error:
Uncaught TypeError: Cannot read property 'apply' of undefined at Router._bps (patchRouter.js:72) at Router.onPopState (router.js:36)
It relates to the line where _unpatchedBeforePopStateCallback is called in patchRouter.js, which is not defined.
_unpatchedBeforePopStateCallback
patchRouter.js
I did some research and found out that _beforePopState is not there anymore in Next.js: vercel/next.js@83334f1#diff-a33404ba5698b3b45e69c2b3f2d3b48bL38
_beforePopState
Then I tried replacing _beforePopState with _bps in patchRouter.js, but that did not help.
_bps
Maybe someone has an idea.
The text was updated successfully, but these errors were encountered:
I'll look into this today, thanks for reporting
Sorry, something went wrong.
I just released 1.0.2, can you let me know if it's working as expected for you?
Wow, that was fast.
It fixes our issue. Thanks 🎉
Successfully merging a pull request may close this issue.
When using the browser back button, routing still works, but it throws an error:
It relates to the line where
_unpatchedBeforePopStateCallback
is called inpatchRouter.js
, which is not defined.I did some research and found out that
_beforePopState
is not there anymore in Next.js:vercel/next.js@83334f1#diff-a33404ba5698b3b45e69c2b3f2d3b48bL38
Then I tried replacing
_beforePopState
with_bps
inpatchRouter.js
, but that did not help.Maybe someone has an idea.
The text was updated successfully, but these errors were encountered: