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