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

Document the onDiscarded option #1740

Closed
shuding opened this issue Dec 26, 2021 · 3 comments
Closed

Document the onDiscarded option #1740

shuding opened this issue Dec 26, 2021 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@shuding
Copy link
Member

shuding commented Dec 26, 2021

onDiscarded (added in #1523) should be documented.

@shuding shuding added the documentation Improvements or additions to documentation label Dec 26, 2021
@lucksp
Copy link

lucksp commented Feb 25, 2022

What does onDiscarded do? Is this when a key matches already and the request shouldn't revalidate?

@swand0g
Copy link

swand0g commented Feb 27, 2022

@lucksp it's triggered on race conditions

@koba04
Copy link
Collaborator

koba04 commented Nov 29, 2022

Fixed via vercel/swr-site#371

@koba04 koba04 closed this as completed Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants