xstate-tools icon indicating copy to clipboard operation
xstate-tools copied to clipboard

Bug: Visual Editor does not support meta values

Open erikras opened this issue 2 years ago • 3 comments

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

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

erikras avatar Mar 13 '22 21:03 erikras

Whoa! I didn't know you could "transfer" issues. Nice.

erikras avatar Mar 14 '22 08:03 erikras

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.

SimeonC avatar Jul 04 '22 09:07 SimeonC

We are currently working on a solution for this (cc. @mattpocock @Andarist)

davidkpiano avatar Jul 04 '22 10:07 davidkpiano