Skip to content
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

When hydrate, because render before hydrate from localstorage data not reading #83

Open
ghost opened this issue Dec 18, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 18, 2019

No description provided.

@renepardon
Copy link

Have the same problem and trying to figure out how to solve this. I mean it would not be a solution to hydrate all stores on initial page load because this will be a performance killer.

@renepardon
Copy link

renepardon commented Jun 25, 2020

It's as simple as adding observer() around your functional component or add @observer annotation above your class component. This way the hydrate happens before the component gets rendered. @simayi0322

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant