From 70789a0631f66d523c36abc61070bfbb02af3e08 Mon Sep 17 00:00:00 2001 From: tbitw2549 Date: Sat, 22 Jun 2024 00:20:01 +0300 Subject: [PATCH] chore: rename loader to hydrate --- docs/2.guide/2.directory-structure/1.components.md | 8 ++++---- docs/3.api/3.utils/create-event-loader.md | 2 +- docs/3.api/3.utils/create-idle-loader.md | 2 +- docs/3.api/3.utils/create-visible-loader.md | 2 +- .../components/runtime/client-delayed-component.ts | 6 +++--- packages/nuxt/src/components/templates.ts | 12 ++++++------ .../basic/pages/lazy-import-components/index.vue | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/2.guide/2.directory-structure/1.components.md b/docs/2.guide/2.directory-structure/1.components.md index dcf2339f2..b482b8ded 100644 --- a/docs/2.guide/2.directory-structure/1.components.md +++ b/docs/2.guide/2.directory-structure/1.components.md @@ -167,14 +167,14 @@ If you would like the component to load after certain events occur, like a click ### Custom hydration triggers -If you would like to override the default hydration triggers when dealing with delayed hydration, like changing the timeout, the options for the intersection observer, or the events to trigger the hydration, you can do so by supplying a `loader` prop to your lazy components. +If you would like to override the default hydration triggers when dealing with delayed hydration, like changing the timeout, the options for the intersection observer, or the events to trigger the hydration, you can do so by supplying a `hydrate` prop to your lazy components. ```vue [pages/index.vue] ``` diff --git a/docs/3.api/3.utils/create-event-loader.md b/docs/3.api/3.utils/create-event-loader.md index 7772eef9b..a94c98385 100644 --- a/docs/3.api/3.utils/create-event-loader.md +++ b/docs/3.api/3.utils/create-event-loader.md @@ -21,7 +21,7 @@ If you would like to trigger hydration when the element is either clicked or has ```vue [pages/index.vue]