You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm planning to use @xstate/fsm in my project to get the bundle size down a bit, but I'm not able to use this addon when I replace the imports.
// import { useMachine } from '@xstate/svelte'; // this works// import { createMachine } from 'xstate'; // this worksimport{useMachine}from'@xstate/svelte/lib/fsm';// this doesn't workimport{createMachine}from'@xstate/fsm';// this doesn't work
(I'm using svelte too, but I don't think that makes a difference)
I'm just getting a message in "xState inspector" that says:
Waiting for connection...
The text was updated successfully, but these errors were encountered:
Hey, thanks for the report. I didn't test with fsm packages. They must use a different interpreter than the main xstate packages.
Not sure when I can get time to figure that out, if you want to have a go and send an PR the part that "turns on" the inspector is in this file src/preset/withXstateInspector.ts L24 an L38.
Hi,
I'm planning to use @xstate/fsm in my project to get the bundle size down a bit, but I'm not able to use this addon when I replace the imports.
(I'm using svelte too, but I don't think that makes a difference)
I'm just getting a message in "xState inspector" that says:
The text was updated successfully, but these errors were encountered: