Replies: 1 comment
-
The short answer is you can't - the store is created once, and you can't modify the middleware later. (You could swap the reducers, but that seems like a bad idea here.) You could potentially do something like writing the endpoints with a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am developing an application which aims to provide both online and offline data service, allowing user to choose different data providers. I found that I can pre-type the api and use different api implementation to make this possible. But how can I update the store reducers and middleware, or should I replace the entire store at runtime?
Beta Was this translation helpful? Give feedback.
All reactions