Simplify and improve event/state management #18
Labels
good first issue
Good for newcomers
hacktoberfest
Hacktoberfest contributions
hacktoberfest-accepted
Hacktoberfest contributions
help wanted
Extra attention is needed
The current design of the app uses a slightly cumbersome method to handle events and states. Primarily, state changes are propagated via event bubbling which is supported by Svelte. This becomes quickly messy as you nest more components down deep as you have to propagate it up all the way to the top level component where the state change is handled.
Proposal
Using svelte custom stores would be a way more elegant approach to doing this. This way each component can independently update the require data and the store is refresh and all dependent components will auto update to the latest values.
Thoughts and ideas appreciated
The text was updated successfully, but these errors were encountered: