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

fix: prefetch causing stale data #9020

Merged
merged 4 commits into from
Nov 4, 2024
Merged

Conversation

jmikrut
Copy link
Member

@jmikrut jmikrut commented Nov 4, 2024

Potentially fixes #9012 by disabling prefetch for all Next.js Link component usage.

With prefetch left as the default and on, there were cases where the prefetch could fetch stale data for Edit routes. Then, when navigating to the Edit route, the data could be stale.

In addition, I think there is some strangeness happening on the Next.js side where prefetched data might still come from the router cache even though router cache is disabled.

This fix should be done regardless, but I suspect it will solve for a lot of stale data issues.

@jmikrut jmikrut merged commit 35b107a into beta Nov 4, 2024
48 checks passed
@jmikrut jmikrut deleted the fix/prefetch-causing-stale-data branch November 4, 2024 19:24
Copy link

github-actions bot commented Nov 4, 2024

🚀 This is included in version v3.0.0-beta.124

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.

Old data in payload UI
2 participants