-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Reactivue beta: Got error upon returning to current page from navigation (w/ react router) #50
Comments
That would be great. |
Please see https://codesandbox.io/s/cocky-meadow-h5205z?file=%2Fsrc%2Fpages%2Fhome.tsx Click the "Go to pageB" button, and then click "Back to Home" button. |
Fixed in |
Ok now the error message is gone, but upon returning to the current page, after interacting with Pinia (data and UI seems to be working fine), I get the following error:
Reproducible in the same CodeSandBox link, I've updated that to reactivue beta6. |
I fixed this error in |
I have updated react to v18 and indeed the error message is gone. Closing this for now, thanks for fixing. |
Context: Yesterday I reported a compatibility issue with latest Pinia and Vue, where @sibbng directed me to the beta version of this project. So I tested it out, Pinia works, never had any issue until I tried using react router.
Step by step to reproduce using the react playground example:
react-router-dom
, put the currentApp.tsx
as index route, and create a new route.(Note: the goal is to create two routes that we can navigate between)
TLDR:
Error message:
Let me know if you need a CodeSandbox, I can create one.
Edit: Added more details of which files has changed, as below,
package.json
"react-router-dom": "^6.2.2",
App.tsx
The text was updated successfully, but these errors were encountered: