From bd831cac1461c45b687a4e15c39b95e628441142 Mon Sep 17 00:00:00 2001 From: Michael Brevard Date: Wed, 9 Oct 2024 10:24:35 +0300 Subject: [PATCH] chore: remove hydration loaders --- packages/nuxt/src/app/composables/hydrate.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packages/nuxt/src/app/composables/hydrate.ts b/packages/nuxt/src/app/composables/hydrate.ts index 18439c665..efc19abcf 100644 --- a/packages/nuxt/src/app/composables/hydrate.ts +++ b/packages/nuxt/src/app/composables/hydrate.ts @@ -23,21 +23,3 @@ export const useHydration = (k }) } } - -/** - * A `requestIdleCallback` options utility, used to determine custom timeout for idle-callback based delayed hydration. - * @param timeout the max timeout for the idle callback, in milliseconds - */ -export const createIdleLoader = (timeout: number) => timeout - -/** - * An `IntersectionObserver` options utility, used to determine custom viewport-based delayed hydration behavior. - * @param opts the options object, containing the wanted viewport options - */ -export const createVisibleLoader = (opts: Partial) => opts - -/** - * A utility used to determine which event/events should trigger hydration in components with event-based delayed hydration. - * @param events an event or array of events that will be used to trigger the hydration - */ -export const createEventLoader = (events: keyof HTMLElementEventMap | Array) => events