I've got a simple example demonstrating what I'm seeing: https://stackblitz.com/edit/lit-element-example-3pdnwk?file=index.js.
Basically when the first child element renders, the text
property is set correctly. However on the second render, the text
property is undefined
first and then updated to be the correct value.
This breaks being able to depend on _firstRendered()
to have the correct values assigned to the properties.
Am I doing something really off here?
Update: Here is a better example using a similar method provided in the lit-html documentation: https://stackblitz.com/edit/lit-element-issue?file=index.js
This is no longer an issue as of 0.6.0-dev.5