File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ function useFetch<TData = any>(...args: UseFetchArgs): UseFetch<TData> {
36
36
perPage,
37
37
cachePolicy, // 'cache-first' by default
38
38
cacheLife,
39
- suspense,
39
+ suspense
40
40
} = customOptions
41
41
42
42
const cache = useCache ( { persist, cacheLife, cachePolicy } )
@@ -196,7 +196,7 @@ function useFetch<TData = any>(...args: UseFetchArgs): UseFetch<TData> {
196
196
197
197
// Cancel any running request when unmounting to avoid updating state after component has unmounted
198
198
// This can happen if a request's promise resolves after component unmounts
199
- useEffect ( request . abort , [ ] )
199
+ useEffect ( ( ) => request . abort , [ ] )
200
200
201
201
if ( suspense && suspender . current ) {
202
202
if ( isServer ) throw new Error ( 'Suspense on server side is not yet supported! 🙅♂️' )
You can’t perform that action at this time.
0 commit comments