We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when mutating with async function, if async function resolved after the fetcher, the swr cache can't be changed by mutate or fetcher
when mutating with async function, the fetcher result should be ignored.
https://codesandbox.io/s/swr-mutate-bug-eujb4?file=/src/index.tsx
SWR version. 0.5.4
Related to #1070
The text was updated successfully, but these errors were encountered:
fix mutate overlap check
548a76d
fix vercel#1074
fix mutate
5d2b76a
close vercel#1056; close vercel#1074;
536e25e
close vercel#1070; close vercel#1074;
fix mutate (#1075)
40650e8
close #1070; close #1074;
Successfully merging a pull request may close this issue.
Bug report
Description / Observed Behavior
when mutating with async function, if async function resolved after the fetcher, the swr cache can't be changed by mutate or fetcher
Expected Behavior
when mutating with async function, the fetcher result should be ignored.
Repro Steps / Code Example
https://codesandbox.io/s/swr-mutate-bug-eujb4?file=/src/index.tsx
Additional Context
SWR version. 0.5.4
Related to #1070
The text was updated successfully, but these errors were encountered: