Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: