From b64dca110e21958ba64e1ac340e6a8e95747c83d Mon Sep 17 00:00:00 2001 From: tbitw2549 Date: Tue, 13 Aug 2024 19:18:03 +0300 Subject: [PATCH] refactor: use vue native hydration strategies --- docs/3.api/3.utils/create-idle-loader.md | 6 +- packages/nuxt/src/app/composables/hydrate.ts | 4 +- .../runtime/client-delayed-component.ts | 98 ++++--------------- 3 files changed, 24 insertions(+), 84 deletions(-) diff --git a/docs/3.api/3.utils/create-idle-loader.md b/docs/3.api/3.utils/create-idle-loader.md index ca17db26f..5c7a269a9 100644 --- a/docs/3.api/3.utils/create-idle-loader.md +++ b/docs/3.api/3.utils/create-idle-loader.md @@ -12,7 +12,7 @@ You can use this utility to customize the timeout of delayed hydration component ## Parameters -- `options`: `{ timeout }` +- `timeout` : `number` ## Example @@ -21,7 +21,7 @@ If you would like to give a timeout of 5 seconds for the components: ```vue [pages/index.vue]