jumpsuit / jumpstate

Jumpstate is a simple and powerful state management utility for Redux.
MIT License
425 stars 22 forks source link

how to you resolve multiple composed states with the same methods? #42

Open bingomanatee opened 7 years ago

bingomanatee commented 7 years ago

I.e., if you have State('foo' {increment: ...}), State('bar', {increment...}) and you call Action.increment() which one happens?

tannerlinsley commented 7 years ago

Both happen just as things would in multi redux reducers. Each state can respond in its own way to the action :) On Thu, Jul 13, 2017 at 6:08 PM Dave Edelhart notifications@github.com wrote:

I.e., if you have State('foo' {increment: ...}), State('bar', {increment...}) and you call Action.increment() which one happens?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jumpsuit/jumpstate/issues/42, or mute the thread https://github.com/notifications/unsubscribe-auth/AFUmCTpJSHUjNxKZx3jiy7I-a6Ycrh3tks5sNrF4gaJpZM4OXry0 .