huseyindeniz / vite-react-dapp-template

Vite React Template for dApp Frontend Development
https://huseyindeniz.github.io/react-dapp-template-documentation/
MIT License
7 stars 5 forks source link

Consider using RTK createListenerMiddleware instead of Redux Saga #42

Open huseyindeniz opened 6 months ago

huseyindeniz commented 6 months ago

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.

huseyindeniz commented 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.

huseyindeniz commented 5 months ago

Find example integration test of createListenerMiddleware and compare it with Redux-Saga testing which is excellent.