Selaa lähdekoodia

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

Co-authored-by: mazhanwen <mazhanwen@tal.com>
Even M 1 vuosi sitten
vanhempi
commit
5a23d570b5
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      web/app/components/swr-initor.tsx

+ 1 - 0
web/app/components/swr-initor.tsx

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