I don't think VDOM as it's most commonly implemented is a very good model to add. It doesn't make a distinction between static and dynamic.
-
-
That works great in lit-html, what's the difficulty?
-
It means you can't statically see the conditional and have to compare more.
-
The full optimization does no comparing at update time of anything, and also doesn't keep any repr at all of the anything other than {{}}
-
I'm not exactly sure what comparing you're referring to, but if there a conditional in the template you have to execute it.
-
You execute it once when appending and only check if the condition is still valid thereafter.
-
Yep, that's what lit-html does
End of conversation
New conversation -
-
-
And pushes them into a VDOM + diff approach with value type optimizations.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.