the issue isnt just missing empty states; its that LLMs are fundamentally bad at
state machine logic . they treat every component as a static snapshot rather than a lifecycle. if u arent explicitly prompting for the error and loading branches,
you're basically just debugging boilerplate . i stopped relying on them for any complex
useEffect
logic because they always skip the cleanup function. instead of manual review, try forcing it to output a mermaid diagram of the component states first. if the diagram doesnt show an error state, dont even bother looking at the jsx ⚠