Mastodon Feed: Post

Mastodon Feed

collinsworth@hachyderm.io ("Josh Collinsworth") wrote:

Me: "When does useEffect fire?"

Google: "After every render!"

Me: "No, but initially."

Google "After paint!"

Me: "No, when does useEffect run the *first* time?"

Google: "After every render!"

Me: "What *event*? Is it after domcontentloaded? Will deferred scripts have run by the point useEffect runs?"

Google:

Me:

Google: "Look, I'm sorry, dude, nobody who uses React has any idea how browsers work. Here's twenty articles that don't answer your question. Care for a cookie?"