From d15f0c4e66faee12df37baf73ff3aa673e535ed9 Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Wed, 17 Jan 2024 11:48:37 +0100 Subject: [PATCH] fix(nuxt): don't set 2x `data-island-uid` for island children (#25245) --- packages/nuxt/src/app/components/nuxt-island.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/app/components/nuxt-island.ts b/packages/nuxt/src/app/components/nuxt-island.ts index ef3f5e608e..4d9c27b54c 100644 --- a/packages/nuxt/src/app/components/nuxt-island.ts +++ b/packages/nuxt/src/app/components/nuxt-island.ts @@ -20,7 +20,7 @@ import { remoteComponentIslands, selectiveClient } from '#build/nuxt.config.mjs' const pKey = '_islandPromises' const SSR_UID_RE = /data-island-uid="([^"]*)"/ -const DATA_ISLAND_UID_RE = /data-island-uid/g +const DATA_ISLAND_UID_RE = /data-island-uid(="")?(?!="[^"])/g const SLOTNAME_RE = /data-island-slot="([^"]*)"/g const SLOT_FALLBACK_RE = / data-island-slot="([^"]*)"[^>]*>/g