I'm reviewing a React codebase that uses Redux to cache HTTP responses


I'm reviewing a React codebase that uses Redux to cache HTTP responses.

It feels needlessly complex, and risky. And, there's no cache invalidation logic. 😬

React-query accomplishes the same thing with far less code, stale-while-revalidate, granular cache control, and more.
And before people reply, yes, RTK Query would be another option, but that's not being used in this case.

View original on X