Эх сурвалжийг харах

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

Co-authored-by: mazhanwen <mazhanwen@tal.com>
Even M 1 жил өмнө
parent
commit
5a23d570b5

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

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