colinbate / redux-form-submit-saga

Handles redux-form submissions using redux-saga
MIT License
61 stars 12 forks source link

'SUBMIT' suffix never fired? #4

Closed bslinger closed 7 years ago

bslinger commented 7 years ago

I'm not getting a 'MYFORM_SUBMIT' action fired when I use your module, and looking at the code I can't see where that would ever get fired as you seem to override it with the transform function immediately after generating it here

All I see in my Redux dev tools is the generic 'FORM_SUBMIT' action, but that's not all that useful to me without doing extra checking in all my sagas. Have I missed something?

colinbate commented 7 years ago

Your submit action is emitted here. You should see it appear after the FORM_SUBMIT action.

If your submit action isn't showing up then it is possible that the module's saga isn't getting registered properly. There is an addFormSubmitSagaTo function which needs to wrap your root saga.

bslinger commented 7 years ago

Thanks! You were right, I'd forgotten to add the formSubmitSaga to my rootSaga. Thanks for the quick response and the useful module!