Explorar el Código

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

Co-authored-by: mazhanwen <mazhanwen@tal.com>
Even M hace 1 año
padre
commit
5a23d570b5
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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>