diff --git a/pkg/lib/hooks.ts b/pkg/lib/hooks.ts index 4226a02c5de1..08fe577f8bcd 100644 --- a/pkg/lib/hooks.ts +++ b/pkg/lib/hooks.ts @@ -332,6 +332,6 @@ export function useEvent(obj: c * "useInit" and default to "[]". */ -export function useInit(func: () => T, deps: D, comps?: Comparators, destroy: ((value: T) => void) | null = null): T { +export function useInit(func: () => T, deps?: D, comps?: Comparators, destroy: ((value: T) => void) | null = null): T { return useObject(func, destroy, deps || [], comps); }