3 ms·
That's interesting. I guess you miss out on batched rendering--if all your setters re-render, you might trigger multiple renders for a single logical update. If
by niedzielski 3y ago
That's interesting. I guess you miss out on batched rendering--if all your setters re-render, you might trigger multiple renders for a single logical update. If you're using signals, maybe you don't care as much about batched rendering. I would probably miss CSS selectors too.
- claytongulick 3y agoLit-html is so fast and cheap, batched rendering isn't really useful. I will sometimes do a little trickery in my setters to prevent pointless server round-trips though. The general rule of thumb with lit-html is "meh, just render. It's just a template clone, and pretty much free". There's no need to miss css selectors, they work just fine. That's the advantage of avoiding shadow dom.