How to handle an error from fetch API when closing/unloading in async context?

前端 未结 0 1983
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-12 13:14

I wrote the following code to fetch data in my application. I want to wrap all TypeError: Failed to fetch thrown by fetch int

相关标签:
回答
  • 消灭零回复
提交回复
热议问题