Replies: 1 comment 2 replies
-
This would be really slow. Every time you change an attribute the entire DOM will be removed and replaced. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, currently the lit typescript plugin doesn't work for the latest typescript version. And, to be honest, without it the development experience is not great:
I was considering an alternative to get better typescript support, without needing external tooling. This is the main idea that I got, a custom directive:
The usage would be as follows:
I would like to know your opinion about this. This allows me to have a better interface about how do I create the element, and I get a better IDE experience.
However, I fear that the use of unsafeStatic won't be supported in future lit versions, or that I'm doing something that is really unperformant.
What are your thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions