Closed piotrkochan closed 4 years ago
All namespace boundaries (whether they be for reducers, sagas or anything else) are supposed to process any relevantly namespaced actions and global actions.
How are you dispatching the global action? As a plain action into the global store or using the globalAction
utility/globalActions
middleware?
I'm just dispatching plain action but I'll try with the globalAction utility, thanks!
Yeah, that would explain it. Let me know how you go.
It works
Is it a bug, feature request or question?
Question
Which package(s) does this involve?
redux-subspace-saga
Input Code
Subspaced saga:
Root saga:
Expected Behavior
I would like to catch actions fired in the global space.
Current Behavior
Subspaced saga reacts only to namespaced actions.
Possible Solution
Maybe there is a way to do that. Of course I can
takeEvery(GLOBAL_ACTION);
in global saga and re-yield them as namespaced.