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

Co-authored-by: mazhanwen <mazhanwen@tal.com>
This commit is contained in:
Even M 2024-04-07 22:43:44 +08:00 committed by GitHub
parent 28b1c48235
commit 5a23d570b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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