fix: Turn off SWR automatic revalidation when window is focused (#3129)
Co-authored-by: mazhanwen <mazhanwen@tal.com>
This commit is contained in:
parent
28b1c48235
commit
5a23d570b5
1 changed files with 1 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ const SwrInitor = ({
|
||||||
? (
|
? (
|
||||||
<SWRConfig value={{
|
<SWRConfig value={{
|
||||||
shouldRetryOnError: false,
|
shouldRetryOnError: false,
|
||||||
|
revalidateOnFocus: false,
|
||||||
}}>
|
}}>
|
||||||
{children}
|
{children}
|
||||||
</SWRConfig>
|
</SWRConfig>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue