koordinates / xstate-tree

Build UIs with Actors using xstate and React
MIT License
82 stars 6 forks source link

Support tags #26

Open UberMouse opened 1 year ago

UberMouse commented 1 year ago

xstate supports tags on states. Currently you can't access that information in the selectors or views.

Passing the hasTags function to the selector and view would be a simple solution. Tags are not typesafe currently, not sure if typegen will be updated to support them at some point, may make more sense to wait until then to not require a rework to add the type information. We don't use them internally at Koordinates.