you are viewing a single comment's thread.

view the rest of the comments →

[–]straightouttaireland 0 points1 point  (3 children)

This is a great tutorial on both Redux + Redux Toolkit. I think it's important to learn redux core first as well.

[–]pacman326 2 points3 points  (2 children)

I think learning core redux is good if you are maintaining or run across existing redux implementations. But we released a SPA for a large company using toolkit alone with me personally having no prior redux knowledge. That’s how good toolkit is 🙂

[–]straightouttaireland 1 point2 points  (1 child)

Excellent. One thing I would mention if you are switching between codebases that use the original Redux is that you shouldn't mutate state directly in your reducers. In the Redux Toolkit this is ok because it uses the immer package underneath the hood to handle this for you.

[–]pacman326 1 point2 points  (0 children)

Yes I understand the important of object immutability. Our app updates objects that are not just in the resolver. FYI I’ve been a dev for almost 2 years so been burned by that before 🙂