From d6ab36ff1ea263bc1249520b31e379f5e7985d10 Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Tue, 3 Mar 2026 11:21:04 +0800 Subject: [PATCH] chore: update vinext, add workaround (#32878) --- .../components/devtools/react-scan/loader.tsx | 20 +-- .../components/devtools/react-scan/scan.tsx | 22 --- .../plugins/marketplace/hydration-server.tsx | 4 + web/app/layout.tsx | 3 +- web/app/sw.ts | 1 - web/package.json | 4 +- web/pnpm-lock.yaml | 144 +++++++----------- 7 files changed, 74 insertions(+), 124 deletions(-) delete mode 100644 web/app/components/devtools/react-scan/scan.tsx diff --git a/web/app/components/devtools/react-scan/loader.tsx b/web/app/components/devtools/react-scan/loader.tsx index ee702216f7..a5956d7825 100644 --- a/web/app/components/devtools/react-scan/loader.tsx +++ b/web/app/components/devtools/react-scan/loader.tsx @@ -1,21 +1,15 @@ -'use client' - -import { lazy, Suspense } from 'react' +import Script from 'next/script' import { IS_DEV } from '@/config' -const ReactScan = lazy(() => - import('./scan').then(module => ({ - default: module.ReactScan, - })), -) - -export const ReactScanLoader = () => { +export function ReactScanLoader() { if (!IS_DEV) return null return ( - - - +