Closed drunkplato closed 2 years ago
We use a lib called mobx-state-tree to which helps us manage our state. It is organized as a tree with map hierarchies to various models.
mobx-state-tree
|- booth-store | \ | |- booth-model | | \ | | |- {...booth-data} | | |- participant-store | | | \ | | | | - participant-model | | | / | | |- proposal-store | | | \ | | | |- proposal-model | | | | \ | | | | |- {...proposal-data} | | | | |- choices | | | | |- poll | | | | | \ | | | | | |- status | | | | |- results | | | | | \ | | | | | |- tally-model | | | | | |- vote-model
The above structure is implemented.
Store structure
We use a lib called
mobx-state-tree
to which helps us manage our state. It is organized as a tree with map hierarchies to various models.The above structure is implemented.