[RFC] Integration with Lit #2186
Replies: 6 comments 6 replies
-
This is awesome, and the controller is so simple! :) I haven't yet used XState or other state machine libraries for building components, but it makes a ton of sense. One thing I've wondered about, and I'd be very interested in seeing if XState integration could help with, is how to use XState to ensure that a component has well-defined behavior even when it's public interface is made of up independent properties. Mapping state to property getters seems relatively straightforward (I think!), probably same with mapping events to One not on the prototype is that I'd recommend against hook-style naming like |
Beta Was this translation helpful? Give feedback.
-
Just noting that we should be able to support |
Beta Was this translation helpful? Give feedback.
-
@xstate/lit seems interesting & I see lit getting some traction (maybe 1/3 of svelte now?). I'm more interested in @xstate/jsx-lite which transliterates into React, Vue, Liquid, SolidJS, Figma, Angular, Svelte, etc. Backed by small company, though they recently poached Misko Hevery, Angular creator. |
Beta Was this translation helpful? Give feedback.
-
Sort of up in the air now whether this should be called Any thoughts? |
Beta Was this translation helpful? Give feedback.
-
Follow #2581 to see the implementation. |
Beta Was this translation helpful? Give feedback.
-
Officaly supported xstate and lit integration would be best, but we shamelessly copied Chris Shanks Scratching the itch for now. |
Beta Was this translation helpful? Give feedback.
-
There have been some discussions in the Discord with integrating xstate with the new
lit
package. @santicros has created a prototype using Lit’sReactiveController
. We were thinking of making a new package called@xstate/lit
that would have similar feature parity to the other component packages.One important thing to note is that the
lit
team is exploring makingReactiveController
adapters for other frameworks so over time this package could end up providing xstate with first class support with many other frameworks (that are not already supported) for free!Happy to hear your thoughts and/or concerns!
Beta Was this translation helpful? Give feedback.
All reactions