swr
swr copied to clipboard
Document the `onDiscarded` option
onDiscarded (added in #1523) should be documented.
What does onDiscarded do? Is this when a key matches already and the request shouldn't revalidate?
@lucksp it's triggered on race conditions
Fixed via https://github.com/vercel/swr-site/pull/371