File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -442,18 +442,18 @@ Wrap a component in a renderless component that will be hydrated when the `trigg
442
442
<script setup >
443
443
import { ref , resolveComponent } from ' vue' ;
444
444
445
- import { hydrateOnInteraction } from ' vue3-lazy-hydration' ;
445
+ import { hydrateWhenTriggered } from ' vue3-lazy-hydration' ;
446
446
447
447
const hydrationTriggered = ref (false );
448
448
449
449
// wrap a globally registered component resolved by its name
450
- const LazilyHydratedComp = hydrateOnInteraction (
450
+ const LazilyHydratedComp = hydrateWhenTriggered (
451
451
resolveComponent (' ComponentA' ),
452
452
hydrationTriggered
453
453
);
454
454
455
455
// wrap an asynchronously loaded component
456
- const LazilyHydratedAsyncComp = hydrateOnInteraction (
456
+ const LazilyHydratedAsyncComp = hydrateWhenTriggered (
457
457
() => import (' ./ComponentB.vue' ),
458
458
hydrationTriggered
459
459
);
You can’t perform that action at this time.
0 commit comments