@vercube/vue-lazy-hydration
Version:
Optimize Vue 3 SSR with lazy hydration, delaying HTML hydration until it's needed for better performance
10 lines (9 loc) • 379 B
TypeScript
import { type HydrationStrategy } from 'vue';
import { IHydrationProps } from '../types/types';
/**
* Get the hydration strategy based on the hydration properties.
*
* @param {IHydrationProps} props - The hydration properties.
* @returns {HydrationStrategy} The hydration strategy.
*/
export declare function getHydrationStrategy(props: IHydrationProps): HydrationStrategy;