DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Discussion on: How to use async function in useEffect?

Collapse
 
jasmin profile image
Jasmin Virdi Author • Edited on

Thanks for sharingπŸ™Œ

Agreed, this is not recommended. Wanted to throw some light on ways with reasoning.

Collapse
 
peerreynders profile image
peerreynders

There was this talk, "When To Fetch", recently at Reactathon 2022

"You need to initiate fetches before you render"