DEV Community

Discussion on: Cleaning up Async Functions in React's useEffect Hook (Unsubscribing)

Collapse
elijahtrillionz profile image
Elijah Trillionz Author

Thanks for this. I do know using the mounted approach is probably not the best way, but it's a way around it.
I will try using the AbortController as suggested.
Thanks.

Some comments have been hidden by the post's author - find out more