Open chiefcll opened 3 weeks ago
We do a trick where we can evaluate expressions and hoist them out. But that only works within module scope and basically on constants... classList and Style are a bit special cased because their dynamicism is broken down to object properties, but I don't have a generic way to do that. In general I could see the potential of adding a list for saying static I suppose, but we don't have that concept in the DOM.
Using the universal renderer - I have a property
style
for nodes which is never dynamic. Is there a way to list certain props / attributes as never dynamic to avoid the user needing to add /@once/ marker?I see style might do something like this already: