One thing i noticed is that, since the Model is typed to any which makes it a bit cumbersome to use in typescript projects wouldn't it make sense to use some sort of system based on generics? Maybe I'm doing somethnig wrong here. In my project wrapped some things to achieve that..
Another thing i was wondering about is scalability. If you have a alarger app with nested models the whole app is rerendered on every state change, as far as I can see. Is that right? Would it make sense to think about a simplistic system to somehow scope redraws. I know, lit is very efficient in patching the dom, but i was wondering: Is there any thoughts on that? Maybe even using the off-the-shelve directives like guard/cache
Hey,
nice library - i really like simplicity of it 💯 This is the whole source, am i right? https://github.com/klaudhaus/lit-up/blob/master/lit-up.js I have a few remarks and would like to know what you think:
One thing i noticed is that, since the Model is typed to
any
which makes it a bit cumbersome to use in typescript projects wouldn't it make sense to use some sort of system based on generics? Maybe I'm doing somethnig wrong here. In my project wrapped some things to achieve that..Another thing i was wondering about is scalability. If you have a alarger app with nested models the whole app is rerendered on every state change, as far as I can see. Is that right? Would it make sense to think about a simplistic system to somehow scope redraws. I know, lit is very efficient in patching the dom, but i was wondering: Is there any thoughts on that? Maybe even using the off-the-shelve directives like guard/cache
Cheers!