Skip to content

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

@budarin

Description

@budarin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions