I am trying to display graphql Errors by setting them as a State in my React App

前端 未结 0 1079
执念已碎
执念已碎 2020-12-05 18:46

The Backend is made in a way in which there will be a single errors object returned. I am trying to access it like this onError(err) { setErrors(err.graphQLErrors[0].e

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