I have a list of observable objects:
[
{
key1: "x",
updateTs: "y"
},
...
]
The user can mutate these objects through the UI.
Those changes are sent to a remote server, and once the request returns the "updateTs" is updated.
The issue is that when online, this causes a double render:
Initial edit from UI.
When remote request returns and edits
updateTs.
I am not using updateTs in my view, only its sibling keys
(key1).
MobX @observer tracks reads to objects, so it triggers a re-render.
This causes UI jank as it consumes JS CPU time to re-compute the virtual dom and diff it (the list is very large).
Is it possible to avoid the second re-render?