Quellcode durchsuchen
fix: Turn off SWR automatic revalidation when window is focused (#3129)
Co-authored-by: mazhanwen <mazhanwen@tal.com>
tags/0.6.0
Even M
vor 1 Jahr
Ursprung
Commit
5a23d570b5
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
|
|
|
@@ -32,6 +32,7 @@ const SwrInitor = ({ |
|
|
|
? ( |
|
|
|
<SWRConfig value={{ |
|
|
|
shouldRetryOnError: false, |
|
|
|
revalidateOnFocus: false, |
|
|
|
}}> |
|
|
|
{children} |
|
|
|
</SWRConfig> |