facebook / facebook/relay

useLazyLoadQuery holding onto old data

Open
#3,502 11 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

We have a single `useLazyLoadQuery` hook that gets passed new variables as you change screens in our app. When you revert to a previous set of variables, the data is served from memory and never triggers a refetch to the network. This is true even if the networkPolicy is set to `network-only`. We are unable to track down the root cause, but reverting back to `react-relay@0.0.0-experimental-c818bac3` makes the issue immediately disappear.

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.