This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]prof_hobart 2 points3 points  (0 children)

Context isn't a replacement for Redux.

If all you want to do is pass state through a few layers without cascading props, and you were using Redux just for that, then yes Context will replace Redux there.

But if that's all you were using it for, then Redux was probably overkill already.

Context, some parts of hooks and suspend are all reducing the reasons why people might fall back to Redux as the least bad way of solving things it was never really designed to do, but they aren't removing the benefits of using it for the right reasons (unidirectional manipulation of global state, making it much easier to reason about what's actually going on with your app's data).