Hacker News new | ask | show | jobs
by hombre_fatal 2607 days ago
The value of mobx is that you implicitly link each component to its data dependencies by dereferencing arbitrary paths into your storage objects in the render() function so that the component rerenders only when data at those paths change.

Does the Context achieve this as well? From a quick search, the Context seems to force rerender of any consumer on any change.

1 comments

You can use library like reselect to optimize. The job of context is simple: implicitly passing down value to deep component.