LEGACY REPO. This repository is for maintenance of the legacy LitElement library. The LitElement base class is now part of the Lit library, which is developed in the lit monorepo.
Under certain conditions, all errors inside updated method are silenced. This complicates debugging and can introduce very difficult to debug and unclear issues.
To Reproduce
Set some property inside firstUpdated method
Inside updated method throw an error when another property changes
🐛 Bug Report
Under certain conditions, all errors inside
updated
method are silenced. This complicates debugging and can introduce very difficult to debug and unclear issues.To Reproduce
firstUpdated
methodupdated
method throw an error when another property changesActual behavior
Error is caught and silenced inside updating-element.ts line 720 No error in the console
Expected behavior
Error is thrown and visible in the console
Link to reproducible sandbox
https://stackblitz.com/edit/znghnm?file=my-element.js
Note: when set property inside
connectedCallback
everything works fine. But it should also work fine when set insidefirstUpdated