erikras / erikras/react-redux-universal-hot-example

Stop page transition after API call in fetchData

Open
#932 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.1k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

@erikras Hi I am on Home page from there i go to Widget page there i use fetchData to make API call. When i get the data from the API than I reject the promise and the FAIL action is called, but after that also it routes to the Widget page.
So i want to know how to stop it from going to Widget page if the promise is rejected. Please any help would be useful.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.