diff --git a/packages/lib/src/hooks/useAsync.ts b/packages/lib/src/hooks/useAsync.ts index 6bf512ec..c799ddd0 100644 --- a/packages/lib/src/hooks/useAsync.ts +++ b/packages/lib/src/hooks/useAsync.ts @@ -18,7 +18,7 @@ type UseAsyncResult = ( error: UseAsyncError } ) & { - invalidate: (fullRefresh?: boolean) => void + invalidate: (forceUpdate?: boolean) => void } export class UseAsyncError extends Error { @@ -78,9 +78,9 @@ export function useAsync( load() } if (!oldHook) { - hook.invalidate = (fullRefresh?: boolean) => { + hook.invalidate = (forceUpdate?: boolean) => { load() - fullRefresh && update() + forceUpdate && update() } } return {