Replies: 1 comment
-
There really isn't a concept like "all the props are loaded", because properties on the element (or other input that's not properties, like children) could change at any moment. Consider creating an element like: const el = document.createElement('my-element');
el.foo = 'foo';
el.bar = 'bar';
setTimeout(() => el.foo = 'baz', 1000); The best we can say is that a property has been set, and then we batch changes so that you can be pretty sure that a set of synchronous changes (like construction, setting foo and setting bar as above) have happened. If you really want to go after the first batch, you can implement |
Beta Was this translation helpful? Give feedback.
-
The title is pretty explicit but basically I want to execute a function when all the props of my LitElement are loaded, how can I do that ?
Beta Was this translation helpful? Give feedback.
All reactions