From ed5732196d6583fb5b729b10bdd5cf1f07e32455 Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Thu, 8 Jun 2023 22:55:21 +0200 Subject: [PATCH] fix(nuxt): prefix server component ids to avoid collisions (#21472) --- packages/nuxt/src/components/runtime/server-component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/components/runtime/server-component.ts b/packages/nuxt/src/components/runtime/server-component.ts index d8db0cc5cf..46539c480d 100644 --- a/packages/nuxt/src/components/runtime/server-component.ts +++ b/packages/nuxt/src/components/runtime/server-component.ts @@ -18,7 +18,7 @@ const SLOT_FALLBACK_RE = /
]*><\/div>(( const SSR_UID_RE = /nuxt-ssr-component-uid="([^"]*)"/ let id = 0 -const getId = process.client ? () => (id++).toString() : randomUUID +const getId = process.client ? () => 's' + (id--) : randomUUID export const createServerComponent = (name: string) => { return defineComponent({