-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Keep state in redirection #995
Comments
Which type of state? There is many ways how you can traverse the state further, for example via url query params, flux/redux/relay store or browser history api. |
@frenzzy, thank you for your quick reply. export default { Here what I want to is to use same store value in /question route. I see that by doing this, in /question route, the store is initialized again. |
To prevent reinitialization of store you should create it once inside Here is an example: #883, plus this in // ...
const route = await UniversalRouter.resolve(routes, {
// ...
store: context.store,
});
// ... |
@frenzzy, I'm also using react-intl branch and in my client.js, route is created like below. |
@phoenix377 thank you very much for crating this issue! Unfortunately, we have close it due to inactivity. Feel free to re-open it or join our Discord channel for discussion. NOTE: The |
I need to save store when it is redirected.
I see this project use universal-router.
How should I implement this?
The text was updated successfully, but these errors were encountered: