DEV Community

Discussion on: Redux is Dead: Long Live Redux Toolkit

Collapse
 
narven profile image
Pedro Luz

Redux Toolkit is really nice evolution from Redux.
Just for the amount of code reduced its worth the refactoring.

Collapse
 
captaincodeman profile image
Simon Green

I haven't used it, but I'm assuming it reduces the amount of code you have to wrote, but increases the amount of code that is bundled in the app, is that correct?

Collapse
 
andrewbaisden profile image
Andrew Baisden

It definitely reduces the amount of code I know that much from experience. The code is so much simpler and easier to read and its not the default way for building Redux apps.

Collapse
 
markerikson profile image
Mark Erikson

RTK does add some code to the bundle size, yes, but:

  • The biggest added size comes from the Immer immutable update library. We've already been recommending use of Immer for immutable updates for a long time, so lots of people were using that anyway
  • The actual logic added by RTK is fairly minimal
  • The amount of app code that goes away more than pays for the size of the RTK methods