xstate-tools
xstate-tools copied to clipboard
Bug: Visual Editor does not support meta values
Description
I honestly don't know if this belongs here or in some other repo for the visualizer/editor, but here we go.
Whenever I put a meta
value on a state, VS Code warns me that this is not supported.
![Screen Shot 2022-03-13 at 22 21 17](https://user-images.githubusercontent.com/4396759/158079737-8c05166a-a6b4-4909-8561-07e8c104f2e7.png)
And then as soon as I move any box in the visual editor, it overwrites my machine definition and erases the meta
value.
🤷♂️
Expected result
Respect the meta, man! (not the Evil Corp., the state property)
Actual result
meta
value is erased.
Reproduction
Description above? 😢
Additional context
No response
Whoa! I didn't know you could "transfer" issues. Nice.
I'm also getting the same issue on transition meta nodes as well.
I'm working around this by using description
values which seems to work in my case.
We are currently working on a solution for this (cc. @mattpocock @Andarist)