-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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
[Examples] Problem with query parameters in with-redux-persist #15484
Labels
good first issue
Easy to fix issues, good for newcomers
Comments
I'll try to fix this. |
@timneutkens |
kodiakhq bot
pushed a commit
that referenced
this issue
Sep 1, 2020
This PR is to fix "[Examples] Problem with query parameters in with-redux-persist (#15484)" The root cause is persist/rehydrate action will issue twice when query parameter is set. But persistStore initial bootstrap is not ready yet. So i add a bootstrap callback and force persistor to persist again to make overall state correct. I also modify the loading prop to a `<div>loading</div>` because it's confuse to set Component in loading prop. Attached the GIF ![demo](https://user-images.githubusercontent.com/1462027/89922530-bec04000-dc31-11ea-9831-12cd9d436d96.gif) Closes #15484
ijjk
pushed a commit
to ijjk/next.js
that referenced
this issue
Sep 2, 2020
…el#16085) This PR is to fix "[Examples] Problem with query parameters in with-redux-persist (vercel#15484)" The root cause is persist/rehydrate action will issue twice when query parameter is set. But persistStore initial bootstrap is not ready yet. So i add a bootstrap callback and force persistor to persist again to make overall state correct. I also modify the loading prop to a `<div>loading</div>` because it's confuse to set Component in loading prop. Attached the GIF ![demo](https://user-images.githubusercontent.com/1462027/89922530-bec04000-dc31-11ea-9831-12cd9d436d96.gif) Closes vercel#15484
HitoriSensei
pushed a commit
to HitoriSensei/next.js
that referenced
this issue
Sep 26, 2020
…el#16085) This PR is to fix "[Examples] Problem with query parameters in with-redux-persist (vercel#15484)" The root cause is persist/rehydrate action will issue twice when query parameter is set. But persistStore initial bootstrap is not ready yet. So i add a bootstrap callback and force persistor to persist again to make overall state correct. I also modify the loading prop to a `<div>loading</div>` because it's confuse to set Component in loading prop. Attached the GIF ![demo](https://user-images.githubusercontent.com/1462027/89922530-bec04000-dc31-11ea-9831-12cd9d436d96.gif) Closes vercel#15484
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Describe the bug
In the with-redux-persist example, using a query parameter in the URL seems to break the loading functionality.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
yarn dev
and navigate tohttp://localhost:3000/?test=123
Expected behavior
It should work the same way it does without the query parameter, meaning the page should load properly like it does http://localhost:3000/
System information
The text was updated successfully, but these errors were encountered: