fix: Turn off SWR automatic revalidation when window is focused (#3129)
Co-authored-by: mazhanwen <mazhanwen@tal.com>
This commit is contained in:
@@ -32,6 +32,7 @@ const SwrInitor = ({
|
||||
? (
|
||||
<SWRConfig value={{
|
||||
shouldRetryOnError: false,
|
||||
revalidateOnFocus: false,
|
||||
}}>
|
||||
{children}
|
||||
</SWRConfig>
|
||||
|
Reference in New Issue
Block a user