diff --git a/packages/lib/src/hooks/useCallback.ts b/packages/lib/src/hooks/useCallback.ts index e5df0d64..fc641ee7 100644 --- a/packages/lib/src/hooks/useCallback.ts +++ b/packages/lib/src/hooks/useCallback.ts @@ -8,6 +8,7 @@ export function useCallback any>( return useHook("useCallback", { callback, deps }, ({ hook, oldHook }) => { if (depsRequireChange(deps, oldHook?.deps)) { + hook.deps = deps hook.callback = callback } return hook.callback