diff --git a/src/client/app/components/ClientOnly.ts b/src/client/app/components/ClientOnly.ts index edbb1066..1781a371 100644 --- a/src/client/app/components/ClientOnly.ts +++ b/src/client/app/components/ClientOnly.ts @@ -7,10 +7,10 @@ export const ClientOnly = defineComponent({ default: true } }, - setup({ isClientOnly }, { slots }) { + setup(props, { slots }) { // Programmatically determine if this component should be // client-only based on the presence of the isClientOnly attribute. - if (!isClientOnly) return () => slots.default?.() || null + if (!props.isClientOnly) return () => slots.default?.(props) || null const show = ref(false)