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

useStore doesnt get initial state from store at first render of a component #4

Open
budarin opened this issue Sep 28, 2019 · 0 comments

Comments

@budarin
Copy link

budarin commented Sep 28, 2019

I'm trying to integrate tree-view example from react-redux with the library
only root element get data from Store
there is no any changes in Store - so leafs don't get data through listener

publish(state) is executed after root element is rendered - leafs are not created yet
After getting tree structure from store root node creates leafs at level 1 and at that step everything stops - created elements do not have access to Store state unless publish(state) is executed

@budarin budarin changed the title useStore doesnt get state from store at first render useStore doesnt get initial state from store at first render of a component Sep 28, 2019
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