diff --git a/src/useAsync.ts b/src/useAsync.ts index 760bceca17..f9f2e1cc43 100644 --- a/src/useAsync.ts +++ b/src/useAsync.ts @@ -25,6 +25,9 @@ const useAsync = (fn: () => Promise, args?) => { useEffect(() => { let mounted = true; + set({ + loading: true, + }); const promise = memoized(); promise