relay
relay copied to clipboard
Hooks: Errors from incremental payloads are dropped (e.g. @defer)
Current Behaviour
When you have
- A query rendered which has a deferred fragment. (
...Foo @defer) - The Relay network respond initially with a partial response (
sink.next(data)) - Then finally, an error is received from the network (
sink.error(error))...
There's code added here in relay-hooks that essentially ignores this error and just warns on it.
Expected Behaviour
If the incremental error payload is renderer as part of a suspended component, that component should receive the error, so its suspense error boundary can process it.
This also effects a query configured to poll. The component never receives the error and it stops polling.