facebook / facebook/relay

ErrorBoundary seems to not rendered when relay network error occurs.

Open
#3,114 6 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

I’m using relay-hook in a react-native project, [hackatalk](https://github.com/dooboolab/hackatalk/tree/master/client).
When relay preloads query, below error occurs.
![Screen Shot 2020-07-03 at 5 01 14 PM](https://user-images.githubusercontent.com/55861805/86446364-d103b000-bd4e-11ea-8850-3c0de85e80f0.png)

It seems related with preload query error, so I added ErrorBoundary.
But It doesn’t render ErrorBoundary fallback component throwing error.
Are there any issues that react-native cannot use ErrorBoundary component with relay?

You can check the source below.

1. [preload query](https://github.com/devethan/hackatalk/blob/483d4d80886051b1660ae710a95b69523d38868b/client/src/App.tsx#L50)
2. [ErrorBoundary](https://github.com/devethan/hackatalk/blob/483d4d80886051b1660ae710a95b69523d38868b/client/src/components/screen/ErrorBoundary.tsx#L12)
3. [fetch.ts](https://github.com/devethan/hackatalk/blob/483d4d80886051b1660ae710a95b69523d38868b/client/src/relay/fetch.ts#L7)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.