79594427

Date: 2025-04-26 21:25:02
Score: 2
Natty:
Report link

I had a component that I know was breaking, but I didn't know why. My solution was to run this component inside a useEffect(() => setTimeout(() => renderComponent(), xx), []).

With this, I was able to capture the thrown error in the browser.

Argh you React for swallowing errors !

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: rhengles