Skip to content

External Stores stop being external as soon as you provide them #24

@d3dc

Description

@d3dc

It looks like the actions in a store get bound to the Provider when it renders. This means if you unmount a provider and later provide the same store, the actions will throw an error.

I mocked up what was happening in my project here:
https://jp46nlpk8y.codesandbox.io/
https://codesandbox.io/s/jp46nlpk8y?view=preview

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