✅ – _mercury – 20-10 Jan 15

How to deal with disconnections ? I want to display an error if fetch ajax req not able to connect ?
3 Replies
ScriptyChris
ScriptyChris2y ago
fetch should throw an error in case request encounters connection issue https://developer.mozilla.org/en-US/docs/Web/API/fetch#exceptions So you may .catch() or catch {} it and then show some info to user
reactibot
reactibot2y ago
This question has an answer! Thank you for helping 😄 If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1064275397325373501
reactibot
reactibot2y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1064275397325373501 Question not getting answered? Maybe it's hard to answer, or maybe you asked at a slow time. Check out these resources for help asking a good question: https://stackoverflow.com/help/how-to-ask http://wp.me/p2oIwo-26

Did you find this page helpful?