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 migrating redux code to redux toolkit #620

Closed
acelaya opened this issue Apr 19, 2022 · 0 comments · Fixed by #722
Closed

Consider migrating redux code to redux toolkit #620

acelaya opened this issue Apr 19, 2022 · 0 comments · Fixed by #722

Comments

@acelaya
Copy link
Member

acelaya commented Apr 19, 2022

One of the problems in redux is the amount of boilerplate you potentially need.

One way to reduce that would be migrating to @reduxjs/toolkit, which comes with some tools to simplify that and it's currently considered the official way to "do" redux: https://redux.js.org/introduction/why-rtk-is-redux-today

Pros:

  • Reduce boilerplate code.
  • Get rid of custom helper functions which replicate some RTK built-ins.

Cons:

  • Might be harder to inject dependencies in action creators.
  • Actions might require the payload prop (to be confirmed).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant