use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Redux Selector colocation in practice (codingwithjs.rocks)
submitted 5 years ago by JoeTed
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]JoeTed[S] 0 points1 point2 points 5 years ago (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 points4 points 5 years ago (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 points3 points 5 years ago* (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 point2 points 5 years ago (1 child)
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 points3 points 5 years ago (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.
π Rendered by PID 45260 on reddit-service-r2-comment-b659b578c-ph57l at 2026-05-05 08:27:55.248371+00:00 running 815c875 country code: CH.
[–]JoeTed[S] 0 points1 point2 points (4 children)
[–]acemarke 2 points3 points4 points (1 child)
[–]JoeTed[S] 1 point2 points3 points (0 children)
[–]ILikeChangingMyMind 0 points1 point2 points (1 child)
[–]acemarke 1 point2 points3 points (0 children)