The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

476265 (1) [Avatar] Offline
I would like to consume an api and, when the request is completed and successful, I'd like to move to the next page of my step-by-step form.

Is this achievable using redux? And how?
Marc Garreau (28) [Avatar] Offline
My apologies for the delay in response here. Often, React developers use React Router ( for managing page navigation. If using v4 of React Router, I would suggest using react-router-redux, which is a part of React Router now. react-router-redux handles routing through Redux actions, and they'll get logged out in the Redux DevTools, like any other action. To finally address your question: in an asynchronous action creator, after a successful or failed API call, you can add another dispatch to redirect using the push method from react-router-redux. Here's one example from a quick Stack Overflow search: