Files
dify/web/app/components/devtools/react-scan/loader.tsx
yyh c7641bb1ce refactor(web): unify app-shell bootstrap on TanStack Query + Next.js route conventions (#35394)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-20 02:52:08 +00:00

16 lines
294 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"
strategy="beforeInteractive"
/>
)
}