ZINC-FYP-2022-23 / console

ZINC UI for teaching assistants
1 stars 0 forks source link

refactor(gui): use plain objects in store instead of ES6 class #15

Closed AnsonH closed 2 years ago

AnsonH commented 2 years ago

Description

Currently we're modelling configuration using an ES6 class Config and Settings. However, ES6 classes should not be used inside easy-peasy's store, as the useStoreState() hook will not cause re-renders as expected

https://stackoverflow.com/q/74002866/11067496

AnsonH commented 2 years ago

Solved by making Config, Settings, and Stage plain JS objects