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: Should always reset to the original data after mutating with optimistic data #1982

Merged
merged 2 commits into from May 18, 2022

Conversation

shuding
Copy link
Member

@shuding shuding commented May 18, 2022

This PR fixes two case (race condition; populateCache = false) where the optimistic data isn't cleared afterwards.

@shuding shuding requested a review from huozhi as a code owner May 18, 2022 17:39
@codesandbox-ci
Copy link

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.

Latest deployment of this branch, based on commit db069b1:

Sandbox Source
SWR-Basic Configuration
SWR-States Configuration
SWR-Infinite Configuration
SWR-SSR Configuration

@shuding shuding merged commit 35e4efe into main May 18, 2022
@shuding shuding deleted the shu/5814 branch May 18, 2022 17:42
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.

None yet

1 participant