relay icon indicating copy to clipboard operation
relay copied to clipboard

Hooks: Errors from incremental payloads are dropped (e.g. @defer)

Open azz opened this issue 2 years ago • 1 comments

Current Behaviour

When you have

  1. A query rendered which has a deferred fragment. (...Foo @defer)
  2. The Relay network respond initially with a partial response (sink.next(data))
  3. 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.

azz avatar Apr 03 '23 06:04 azz

This also effects a query configured to poll. The component never receives the error and it stops polling.

rstrand avatar Mar 20 '24 14:03 rstrand