Open huseyindeniz opened 6 months ago
Do not forget to test it with rtk-query. wallet feature doesn't need it, but rtk-query usage is important in other possible features in real world dapps. It might be a good idea to add a sample feature which interacts with traditional backend servers.
Find example integration test of createListenerMiddleware and compare it with Redux-Saga testing which is excellent.
It's a little bit weird to me but RTK team aggressivly recommends using their internal createListenerMiddleware instead of Redux Saga. They claim that it's more useful in most cases. Details are here:
https://redux-toolkit.js.org/api/createListenerMiddleware
Replicate the wallet feature with this middleware and compare it with Redux Saga.