Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repro for queryCacheExpirationTime not working in hooks #4400

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

josephsavona
Copy link
Contributor

Repro for queryCacheExpirationTime not working in Relay Hooks (or at least not in useLazyLoadQuery). It appears that fetchQueryInternal's deduped entry isn't cleared even after the previous instance of the hook is unmounted, and the subsequent hook invocation reuses this fetch entry. Ie, the runtime correctly detects the query as stale and tries to refetch, but our network caching says no and reuses the previous query.

@josephsavona josephsavona force-pushed the query-cache-expiration-time-repro branch from b7974f5 to 1f3ea7b Compare August 2, 2023 23:45
@facebook-github-bot
Copy link
Contributor

@josephsavona has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants