facebook / facebook/relay

QueryResource DATA_RETENTION_TIMEOUT causes yellow-box warnings on Android React Native

Open
#3,417 1 comment 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

Using Relay on Android React Native causes a yellow-box warning about long timers whenever a `useLazyLoadQuery` is rendered for the first time:

![image](https://user-images.githubusercontent.com/1971519/112030436-e51b5780-8aff-11eb-8b2f-9158d454ba07.png)

It appears this comes from the [5-minute data retention timeout](https://github.com/facebook/relay/blob/2dc1549136fb116a054c0ce9f1571c4bd40fcce2/packages/react-relay/relay-hooks/QueryResource.js#L26) on QueryResource.

Can this timeout be shortened to 1 minute (issue goes away) or made configurable?

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.