You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question from the useAsyncData and the response i got with this client.
Sometimes with Contenful i have some content entry referenced throw an error, but the request from devtools return me the data i need, and i dont have the hand for the content side unfortunately.
My question is : How can i get the data AND the error (if i have one) is returned from the the GQL call ?
Here is my response from gql call inside devtool xhr tab:
{
"errors": [
{
"message": "Query execution error bla bla "
}
],
"data": {
"page": "Data i need is here"
}
}
here is the composable code i use in my component :
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello pips !
I have a question from the useAsyncData and the response i got with this client.
Sometimes with Contenful i have some content entry referenced throw an error, but the request from devtools return me the data i need, and i dont have the hand for the content side unfortunately.
My question is : How can i get the data AND the error (if i have one) is returned from the the GQL call ?
Here is my response from gql call inside devtool xhr tab:
here is the composable code i use in my component :
But useAsyncData (or this client) still store only the error and not the data.
I would like to have both of them :)
Thanks all for your help 🙂
Beta Was this translation helpful? Give feedback.
All reactions