useLazy API
API reference for the useLazy composable.
Functions
useLazy
(active: MaybeRefOrGetter<boolean>, options?: LazyOptions) => LazyContextDeferred content rendering for performance optimization.
Options
eager
MaybeRefOrGetter<boolean>When true, content renders immediately without waiting for activation.
Default: false
Properties
hasContent
Readonly<Ref<boolean, boolean>>Whether content should be rendered. True when: isBooted OR eager OR active
