mistadikay / doob

:deciduous_tree: Smart immutable state for React
MIT License
64 stars 1 forks source link

Requiring stores #6

Closed mistadikay closed 9 years ago

mistadikay commented 9 years ago

Right now we have to require stores so they would emit the changes of the state and it's totally stupid because we might not even use these stores at all. Maybe it makes sense to pair doob with redux?

mistadikay commented 9 years ago

It's been decided that such case is totally up to user/developer to solve. In our architecture we came up with mutators instead of stores and instead of emitting to components, we just update global state in mutators and the state gives the data to components using DataWatcher. And we don't need to worry about requirung mutators because instead of dispatching actions from action creators we just call mutators directly