|
|
|
|
|
by vjerancrnjak
994 days ago
|
|
MobX does not rerender entire components. Unlike Redux at that time (~2016), it was a first approach where minimum rendering was happening effortlessly. You can have a list of components where each component references a bit of global state and rerenders only if that bit changes, even though the list might have enlarged or other elements changed. Last time I used it (2016-2020), they used all of the tricks of the trade, get, set object attributes, dropped decorators and it still worked the same. |
|
In React, the component is the unit of re-rerendering. MobX can't change that fact. The only thing you can do is work around it with hacks that imperatively update the DOM.