@vercube/vue-lazy-hydration
Version:
Optimize Vue 3 SSR with lazy hydration, delaying HTML hydration until it's needed for better performance
9 lines (8 loc) • 377 B
TypeScript
import { defineAsyncComponent, VNode } from 'vue';
import type { IHydrationProps } from '../types/types';
/**
* Creates a hydration blocker component.
* @param {VNode} slot - The element to render.
* @returns {} The async component definition.
*/
export declare function createHydrationBlocker(slot: VNode, props: IHydrationProps): ReturnType<typeof defineAsyncComponent>;