jumpsuit / jumpstate

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

Feature: allow namespace/sandbox for effects #49

Open bsubedi26 opened 6 years ago

bsubedi26 commented 6 years ago

Fixes this issue (https://github.com/jumpsuit/jumpstate/issues/33).

Currently, when a reducer is sandboxed/namespaced, a property is created on the Actions object to reference the reducers actions, for example:

Actions.mySandbox.increment()

However, the effects registered for the reducer are not within the mySandbox namespace and are instead within the global space, for example:

Actions.asyncEffectFromMySandbox()

This attempts to fix this by also sandboxing all of its respective effects when the reducers are sandboxed/namespaced. So instead of above, it will be:

Actions.mySandbox.asyncEffect()
mickeyambrosius commented 6 years ago

Is this repository no longer maintained? Would be great if this feature were merged into the master

bsubedi26 commented 6 years ago

@NomadicBits I don't think this repository is maintained. If you need something similar, this is a good alternative - https://github.com/rematch/rematch