I have a following question. I was asked to make example project that compares Redux Toolkit Query and Redux Toolkit with use of Fetch API (or Axios).
I have the Redux Toolkit Query part. How can I add another store? Should I do:
<ChosenStoreContext>
<Provider store={store}>
<ApiProvider api={api}>
...Rest of the app
</ApiProvider>
</Provider>
</ChosenStoreContext>
with ChosenStoreContext (useContext boolean value) added just to tell components whether they should dispatch query actions or store actions
Or should I go completely other route? ApiProvider documentation says that it can cause conflicts. Any tips would be helpful!