Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

Even M5a23d570b5f5
diff --git a/web/app/components/swr-initor.tsx b/web/app/components/swr-initor.tsx
index f5ca271d0d6..afb4c58cbcd 100644
--- a/web/app/components/swr-initor.tsx
+++ b/web/app/components/swr-initor.tsx
@@ -32,6 +32,7 @@ const SwrInitor = ({
? (
<SWRConfig value={{
shouldRetryOnError: false,
+ revalidateOnFocus: false,
}}>
{children}
</SWRConfig>