-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetch calls are too optimistic #186
Comments
I could be totally wrong, but I thought that the current code would result in an error ( |
That (Personally, a complete sagas noob) Also, what good is a I don't have a good solution (even though I think I know what the steps are) but ideally if a network fetch fails it shouldn't break things but you should get a nice human alert at the top of the page saying it can't proceed because of a network issue. Plus the message should somehow indicate that you can probably just reload/refresh the page and try again. Kinda like Gmail does. |
Yeah the I agree it would make sense to have a "finer" error handling, and better errors displayed to the user 👍 |
In Tecken, if any Also, my solution required manual code in every place the |
This is definitely a feature that can wait but the fetch calls all assume that JSON is returned.
delivery-dashboard/src/PollbotAPI.js
Lines 15 to 34 in 900b00e
If anything goes wrong with the request, there might not be a valid JSON and you'd get a cryptic error.
Instead of
we should be doing something like:
Example
This way, we could do something more useful if ANY of the XHR fails.
The text was updated successfully, but these errors were encountered: