swr icon indicating copy to clipboard operation
swr copied to clipboard

Document the `onDiscarded` option

Open shuding opened this issue 4 years ago • 2 comments

onDiscarded (added in #1523) should be documented.

shuding avatar Dec 26 '21 17:12 shuding

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

lucksp avatar Feb 25 '22 18:02 lucksp

@lucksp it's triggered on race conditions

swand0g avatar Feb 27 '22 23:02 swand0g

Fixed via https://github.com/vercel/swr-site/pull/371

koba04 avatar Nov 29 '22 03:11 koba04