ClientOnly #
Renders its default slot only after the browser has mounted the app. Server rendering and the first client render both produce an empty node, which keeps browser-only components from causing a hydration mismatch.
TypeScript
let ClientOnly: DefineComponent<{}, () => VNode<RendererNode, RendererElement, { [key: string]: any }>[] | null | undefined, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, ToResolvedProps<{}, {}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>

Comments