react-store
react-store copied to clipboard
useStore doesnt get initial state from store at first render of a component
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