A React Hook similar to React.useEffect, but supports cancellable asynchronous functions.
It should not return a cleanup function, as it is async
and cannot synchronously return a cleanup function to be executed as expected.
If you need to clean up something, please use isCancelled()
within UseAsyncEffectCallback
to check the status of the Effect.
isCancelled()
Click links below to view source on GitHub.
An Effect callback that supports asynchronous functions, but does not support returning a cleanup function.
The same as React.useEffect.