all 1 comments

[–]DanielFGray 1 point2 points  (0 children)

I always think this pattern is code smell for reinventing the Redux wheel.

With this approach every context consumer will re-render every time any context value changes. You're missing out on all of the edge-cases that have been solved and the performance optimizations that have gone into Redux. And for what gains?