DEV Community

Discussion on: `useEffect()` and `async`

Collapse
 
jamesthomson profile image
James Thomson

Good write up on this. Have you seen/used the useAsyncEffect hook? It has a very similar signature as useEffect so it's a simple drop in.

Collapse
 
stlnick profile image
Nick

I hadn’t seen that before. It doesn’t seem too much simpler at first glance but I will say the differences when needing to destroy isn’t something I’ve worked with. So it could be better in those cases.