Andrew Dover
Sep 2, 2018 · 1 min read

Good article. I’ve had a couple of thoughts about this which could do with some validation:

Initial requests for ‘stuff’ from an API: Remove all effects for this, add observable calls to services and place selectors to listen for actions like ‘GET_USERS’ or ‘RECEIVED_USERS’ so they can trigger certain UI changes like loaders and pass the payload via the action.

In your opinion POST requests still need an effect? Surely you could just make a call to a form service and dispatch an action of ‘FORM_SUBMITTED’.

If the form submission is a success then the only thing that would need to happen would be a redirect, perhaps, so there would be an effect to listen for ‘FORM_SUBMISSION_SUCCESS’.

Does that sound feasible?

    Andrew Dover

    Written by

    Finding my feet in the blogging landscape. Developer. Reluctant leader. Failed crypto investor.