From 03d4cc13e1fb516025c7c5653fa1c9932e511d27 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Tue, 18 Jun 2024 17:52:14 +0200 Subject: [PATCH] fix: bad script tag in layout hydration error --- .../internal/helpers/hydration-error-info.ts | 1 - .../acceptance-app/hydration-error.test.ts | 18 +++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/packages/next/src/client/components/react-dev-overlay/internal/helpers/hydration-error-info.ts b/packages/next/src/client/components/react-dev-overlay/internal/helpers/hydration-error-info.ts index 318514a1814665..932cda3dfb4e1b 100644 --- a/packages/next/src/client/components/react-dev-overlay/internal/helpers/hydration-error-info.ts +++ b/packages/next/src/client/components/react-dev-overlay/internal/helpers/hydration-error-info.ts @@ -17,7 +17,6 @@ export const hydrationErrorState: HydrationErrorState = {} // https://github.com/facebook/react/blob/main/packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js used as a reference const htmlTagsWarnings = new Set([ - 'Warning: Cannot render a sync or defer