Josh Collinsworth on Nostr: Me: "When does useEffect fire?" Google: "After every render!" Me: "No, but ...
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?"
Published at
2024-02-28 21:08:17Event JSON
{
"id": "724523bcb62a4e018a6f071d88e13aa34ea1bddca27ea74e2f1db7d6854b276a",
"pubkey": "fb56841938720b83b235cfa2f841491f5157cc126dc8e41ee2abcf570c86220c",
"created_at": 1709154497,
"kind": 1,
"tags": [
[
"proxy",
"https://hachyderm.io/users/collinsworth/statuses/112011149167242354",
"activitypub"
]
],
"content": "Me: \"When does useEffect fire?\"\n\nGoogle: \"After every render!\"\n\nMe: \"No, but initially.\"\n\nGoogle \"After paint!\"\n\nMe: \"No, when does useEffect run the *first* time?\"\n\nGoogle: \"After every render!\"\n\nMe: \"What *event*? Is it after domcontentloaded? Will deferred scripts have run by the point useEffect runs?\"\n\nGoogle: \n\nMe:\n\nGoogle: \"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?\"",
"sig": "b1f3e4001e873b60f71e0b7c9edaa8c4542a6e3647ec076dda2c3f3c406d700b1616ac5c597dab8979531c0996fa74c91484ea85c7300ad6e9315c7ed7e90611"
}