r/programming • u/franleplant • Nov 10 '20
Stop using Redux for Data Fetching, use this instead
https://nosleepjavascript.com/redux-data-fetching-antipattern/
0
Upvotes
0
Nov 10 '20
[deleted]
1
u/franleplant Nov 11 '20
a really nice solution too, react-query was inspired by it and takes a lot of the same semantics.
0
u/IceSentry Nov 11 '20
First of all, this subreddit isn't really for webdev or react.
Also, if you just used hooks and redux toolkit, as is recommended by the redux doc and as been recommended for a while, you would have realised that all your issues about verbosity and complexity are completely gone. The solution to fixing your problem isn't to avoid redux, it's to use it the way it's actually meant to be used in 2020. If it was 2016 and hooks weren't a thing then sure, that would be an interesting alternative, but we're not.