xstate-tools
xstate-tools copied to clipboard
Visual Editor will randomly replace inline machine with a random string
Has anyone else run in to problems using inline machines with the editor? Really hard to replicate but the visual editor will randomly replace my inline machine with a random string. For example while dragging around components, sometimes my inline machine like this one:
"Uploading Artwork": {
entry: "setImageEnding",
invoke: {
src: (context) => {
return createUploadMachine({
blob: imageBlob,
key: context.imageEnding,
});
},
},
Will be transformed to this:
"Uploading Artwork": {
entry: "setImageEnding",
invoke: {
src: "64f3jk",
}
Lately it happens when dragging the onDone
event to another machine, and sometimes I've seen it happen just by clicking on my Uploading Artwork
machine. Here's a git change log
I am unable to reliably recreate, else I would have included a reproduction but wanted to enter this as a ticket for awareness.
Reference here: https://discord.com/channels/795785288994652170/885197642357960764/982118928841052250
We are aware of the issue and we are working on improvements in this part of the code to remedy this.
@Andarist Amazing, thank you! Keep me posted as I would be happy to test. Have you guys figured out what causes this problem to trigger reliably by chance?
I don't think so - but we are overhauling the implementation and we'll try to remove any possibility of this happening.