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

keepPreviousData: return fallback instead of undefined value #4084

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

dvoytenko
Copy link
Member

@dvoytenko dvoytenko commented Feb 4, 2025

We noticed that useSWR gets blocked in rare cases with keepPreviousData when the fallback is updated later.

Copy link

codesandbox-ci bot commented Feb 4, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@huozhi huozhi merged commit f6127e8 into main Feb 5, 2025
7 checks passed
@huozhi huozhi deleted the dimavoytenko/keep-previous-data-undefined branch February 5, 2025 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants