fix: Turn off SWR automatic revalidation when window is focused (#3129)

Co-authored-by: mazhanwen <mazhanwen@tal.com>
pull/3151/head
Even M 2 years ago committed by GitHub
parent 28b1c48235
commit 5a23d570b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -32,6 +32,7 @@ const SwrInitor = ({
? (
<SWRConfig value={{
shouldRetryOnError: false,
revalidateOnFocus: false,
}}>
{children}
</SWRConfig>

Loading…
Cancel
Save