The current state management code is at the beginning of /webapp/src/private/client/client.js and takes about 500 lines. I believe the amount could be reduced by reviewing its relational feature, but it would take a few hundred lines at least.
We could introduce a state management library, which is a much bigger than the current one, but provides an API easy to understand.
MobX is the first candidate.
The current state management code is at the beginning of
/webapp/src/private/client/client.js
and takes about 500 lines. I believe the amount could be reduced by reviewing its relational feature, but it would take a few hundred lines at least. We could introduce a state management library, which is a much bigger than the current one, but provides an API easy to understand. MobX is the first candidate.