Replies: 3 comments 5 replies
-
At the moment I don't think we have any of the life cycle methods available for overload, I think if you need these or accessing to the class based API an issue should be opened |
Beta Was this translation helpful? Give feedback.
-
Thanks. Realised shortly after that this was a bit of daft question as exposing the class API is not really the focus of Fable.Lit. And I wont be raising an issue until I have better use case than doing the Lit tutorials :) |
Beta Was this translation helpful? Give feedback.
-
@AngelMunoz Makes sense! So users can just follow Lit documentation. Only thing is having to duplicate the properties is not very nice. I wonder if we could use the decorators in a similar fashion they do it in the Typescript version. |
Beta Was this translation helpful? Give feedback.
-
I'm going through the lit.dev tutorials and converting them to Fable (Lit.Samples.Fable) and it is fun. However, in Reactivity 4 the
shouldUpdate
method is used but this is not available onLitElement
. Until it is available I guess I could add it as a type extension? The TS signature isshouldUpdate(changedProperties: PropertyValues<this>): boolean
. How would this look in F#/Fable? Any help appreciated.Beta Was this translation helpful? Give feedback.
All reactions