You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The answer is that based on the wording in the redux-saga documentation, I always assumed you could only have a single root saga. However, having just tried to invoke middleware.run with the library saga separately, I see that it works fine.
As it is implemented now you can do: middleware.run(addFormSubmitSagaTo()) in addition running your own root saga separately. However, the name of this function doesn't make as much sense in this context. I may add an alias and update the documentation.
Looking at the src code, I see that you compose formSubmitSaga with the user's rootSaga.
Why not have this be a module that you can just import rather than wrapping the root saga?
Was there an implementation difficulty associated with having this form-submit saga be standalone? Or did you craft it this way for usability?
The text was updated successfully, but these errors were encountered: