Closed hrmcdonald closed 1 year ago
Any thoughts on this @calebdwilliams ? We'd be happy to put in a PR for either direction.
We probably don’t need the is server. Just the optional chaining. Happy to accept that PR; more so if there’s a basic test using @lit-labs/testing
.
Ah, yup, that makes way more sense. We'll look into getting something added soon.
@hrmcdonald I believe this should be resolved, can you confirm?
Yes, this is working for us now! You can close.
The calls to addEventListeners in the element's constructor break Lit SSR compatibility.
Could these be moved to the
connectedCallback
?Alternatively, perhaps provide a method we can override to inform the mixin if it is being rendered on a server at the moment but in a library agnostic way:
So then in a Lit element we could just override: