diff --git a/src/useFetch.ts b/src/useFetch.ts index f51f921..d9b45e6 100644 --- a/src/useFetch.ts +++ b/src/useFetch.ts @@ -182,6 +182,7 @@ function useFetch(...args: UseFetchArgs): UseFetch { if (suspense) { return async (...args) => { + suspenseStatus.current = 'pending' suspender.current = doFetch(...args).then( (newData) => { suspenseStatus.current = 'success'