Understanding the request deduplication mechanism #1126
Unanswered
andykao1213
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I encounter some issues with the options
onSuccess
and open this issue #1125 . It turns out that I have misunderstood the mechanism behind SWR deduplication. I wrote a blog to explain it and hope it can help someone who is also not familiar with the library.TL;DR
data
.depupingInterval
. If not, trigger the request.onSuccess
callback in the same hook will be fired.Beta Was this translation helpful? Give feedback.
All reactions