'fetch' from router - how to have 'res.status(400).json('Enter failure message here')' be handled as an error in .then .catch?

后端 未结 0 1144
我寻月下人不归
我寻月下人不归 2021-01-04 23:01

I have the following code as part of a Button in one of my React Native components. Observe how there is no .catch to handle a possible \'no results\' case from server; it i

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