yonekawa / SwiftFlux

A type-safe Flux implementation for Swift
MIT License
237 stars 19 forks source link

[Proposal]Add StoreGroup feature for aggregating state flow #13

Open yonekawa opened 8 years ago

yonekawa commented 8 years ago

Redux has very interest concept. A single state tree makes it easier to debug or introspect an application. Redux provides undo/redo state easily because the tree managed all state changes.

Before I tried to port Redux features in SwiftFlux. However, Redux principles are based on single state tree. Flux dispatches action to multiple stores. Redux does not need Dispatcher. https://github.com/yonekawa/SwiftFlux/pull/10

I think that SwiftFlux needs to a single state tree utility for developer who needs constraint.