-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors and partially successful response #176
Comments
Just something like this?
EDIT: I tested this on my local dev env and it works like a charm |
Or maybe |
Hi @aleksandrlat, Have you tried to open an issue in Relay to discuss it with the relay team to understand their point of view? |
@morrys I have not created issue in Relay. That is why I have not created new issue. And also this old answer facebook/relay#1816 (comment) Do you think I should open new issue? All solutions from issues above are just workarounds. And what @hayes talks about in facebook/relay#1913 (comment) would be even better |
@morrys what do you think about my prev comment? |
Hi @aleksandrlat, |
Thank you @morrys! But if I don't throw error in network layer (which I don't want to do) then store is "inconsistent" anyway. This does not affect store. It only allows to get error. |
Hello @morrys! Are you available for this issue? What do you think about my small proposal #176 (comment)? It does not affect store just allows to access error. |
fixed with version 7.0.0 |
Hello @morrys!
Thank you for great library.
I'm trying to figure out if
useQuery
supports partial success and ability to access errors when partially successful response is returned.I don't know if relay supports it or not. Or if it is possible to implement some workaround to access errors.
What I can see here https://github.com/relay-tools/relay-hooks/blob/master/src/FetchResolver.ts#L171
next
method accepts entire payload including errors. What if we can set these errors and return from useQuery hook with partial success response?I think this would be simple to implement, right?
This is separate from above topic
Also I found interesting idea in this comment facebook/relay#1913 (comment)
I'm curious if it would be possible to implement something in relay-hooks. Maybe with new hook?
I don't see official relay hooks support this.
The text was updated successfully, but these errors were encountered: