SilentCicero / throw-down

life cycle hooks for pure DOM elements
MIT License
40 stars 3 forks source link

building a state management system into throw-down #2

Open SilentCicero opened 8 years ago

SilentCicero commented 8 years ago

what if all components could use a single state store system like redux or store-emmiter to keep track of components loading and unloading, this way components could subscribe to their state.

Right now, throw-down uses a single components object. However, we could easily make it compatible with Redux/Store-Emitter, so instead of firing callbacks, we are just changing state.

https://github.com/sethvincent/store-emitter