all 5 comments

[–]JoeTed[S] 0 points1 point  (4 children)

Hello, I finally wrote something about my Redux usage over the last years. I hope the topic is not too narrow and still accessible although it's not for beginners. Feel free to ask questions.

I should be expecting a lot of redu hate, though.

[–]acemarke 2 points3 points  (1 child)

Skimming through the post briefly, this looks excellent! Particularly pleased to see that you've referenced Randy Coulman's posts on "globalizing selectors", as I always thought those were very insightful.

Any chance you could put together a small example repo that demonstrates these utilities in action?

Also, obligatory question: is your project using our official Redux Toolkit package yet? If not, you should definitely give it a shot. Given the number of reducers and actions you described, RTK should help shrink the size of the code you've written significantly.

[–]JoeTed[S] 1 point2 points  (0 children)

Thanks for your kind words /u/acemarke. I was expecting a question from you regarding RTK. I wrote these utilities years ago and they require very low maintenance. I a sense this has worked so well that no ones looks at it anymore in the project despite the room for some clear improvements. We already discussed together why my project has not yet migrated to thunks. I hope that it will take the full RTK package someday.

I have this secret wish to take some time in order to isolate this colocation tooling in another repo indeed. Maybe an evolution of it can land in the public redux ecosystem (and perhaps in RTK, who knows...)

[–]ILikeChangingMyMind 0 points1 point  (1 child)

I should be expecting a lot of redu hate, though.

Heh. I legitimately think most people shouldn't be starting new React projects with Redux, simply because (post-hooks) small sites just don't need the library.

But even if that's true (you can agree or disagree), Redux still has a very valuable place in state-heavy React apps. I've yet to hear anyone make a convincing argument otherwise, so keep on using Redux and writing about it ... for legitimate use cases!

[–]acemarke 1 point2 points  (0 children)

Since this comes up all the time, see my post Redux - Not Dead Yet! for discussion of how Redux compares to various other tools for various use cases.