drcmda / drcmda/react-contextual

External Stores stop being external as soon as you provide them

Open
#24 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
638
Forks
21
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.