We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 540d8c3 commit b0b5342Copy full SHA for b0b5342
src/useAsync.js
@@ -85,7 +85,7 @@ const useAsync = (opts, init) => {
85
})
86
useEffect(() => (promiseFn ? load() && undefined : cancel()), [promiseFn, watch])
87
useEffect(() => () => (isMounted.current = false), [])
88
- useEffect(() => abortController.current.abort, [])
+ useEffect(() => () => abortController.current.abort(), [])
89
useEffect(() => (prevOptions.current = options) && undefined)
90
91
return useMemo(
0 commit comments