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({