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(web): defer react-scan loader (#36920)

yyhf465dc50908c
diff --git a/web/app/components/devtools/react-scan/loader.tsx b/web/app/components/devtools/react-scan/loader.tsx
index 8e933c2b24d..54eb2732c52 100644
--- a/web/app/components/devtools/react-scan/loader.tsx
+++ b/web/app/components/devtools/react-scan/loader.tsx
@@ -9,7 +9,9 @@ export function ReactScanLoader() {
<Script
src="//unpkg.com/react-scan/dist/auto.global.js"
crossOrigin="anonymous"
- strategy="beforeInteractive"
+ // React Scan recommends beforeInteractive to catch initial renders, but it
+ // can mismatch with Dify's inline attribution bootstrap during dev hydration.
+ strategy="afterInteractive"
/>
)
}