Catching errors thrown from connectedCallback

from blog Read the Tea Leaves, | ↗ original
Here’s a deep-in-the-weeds thing about web components that I ran into recently. Let’s say you have a humble component: And let’s say that this component throws an error in its connectedCallback: Why would it do that? I dunno, maybe it needs to validate its props or something. Or maybe it’s just having a bad day. […]