Closed AnsonH closed 2 years ago
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
Config
Settings
useStoreState()
https://stackoverflow.com/q/74002866/11067496
Solved by making Config, Settings, and Stage plain JS objects
Stage
Description
Currently we're modelling configuration using an ES6 class
Config
andSettings
. However, ES6 classes should not be used inside easy-peasy's store, as theuseStoreState()
hook will not cause re-renders as expectedhttps://stackoverflow.com/q/74002866/11067496