Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using RTK createListenerMiddleware instead of Redux Saga #42

Open
huseyindeniz opened this issue Mar 14, 2024 · 2 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@huseyindeniz
Copy link
Owner

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 huseyindeniz added the enhancement New feature or request label Mar 14, 2024
@huseyindeniz
Copy link
Owner Author

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
Copy link
Owner Author

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

@huseyindeniz huseyindeniz self-assigned this Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant