But as others have said, Redux is often the way to go if you are doing this often and there are also the use-async-effect and @react-hook/async packages for useAsyncEffect implementations.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
A simplistic way to dump the result would be to track whether the useEffect's unsubscribe function has been called using:
But as others have said, Redux is often the way to go if you are doing this often and there are also the
use-async-effect
and@react-hook/async
packages foruseAsyncEffect
implementations.