Files
dify/web/app/components/devtools/react-scan/loader.tsx
Stephen Zhou a84c2d36a3 style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

17 lines
456 B
TypeScript

import { IS_DEV } from '@/config'
import Script from '@/next/script'
export function ReactScanLoader() {
if (!IS_DEV) return null
return (
<Script
src="//unpkg.com/react-scan/dist/auto.global.js"
crossOrigin="anonymous"
// React Scan recommends beforeInteractive to catch initial renders, but it
// can mismatch with Dify's inline attribution bootstrap during dev hydration.
strategy="afterInteractive"
/>
)
}