We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no machine is rendered in the new visualizer tab either when using:
createMachine({...})
const promiseMachine = createMachine({ id: 'promise', initial: 'pending', states: { pending: { on: { // state transition (shorthand) // this is equivalent to { target: 'resolved' } RESOLVE: 'resolved', // state transition (object) REJECT: { target: 'rejected', }, }, }, resolved: { type: 'final', }, rejected: { type: 'final', }, }, })
or
model = createModel(); model.createMachine({...})
import { createModel } from 'xstate/lib/model' import { createMachine } from 'xstate' interface Config { featureIsEnabled?: boolean } const userFlowModel = createModel( { config: {} as Config, }, { events: { TEST_SELECTED: () => ({}), }, } ) export const userFlowMachine = userFlowModel.createMachine( { id: 'user-flow', initial: 'selectTest', states: { selectTest: { on: { TEST_SELECTED: 'test', }, }, test: {}, results: {}, }, }, { actions: {}, } )
The text was updated successfully, but these errors were encountered:
PS: old extension was only disabled tho, does it have to be fully uninstalled?
Sorry, something went wrong.
@ptaranto Maybe try fully uninstalling it?
Fixed in 1.5.3
No branches or pull requests
no machine is rendered in the new visualizer tab either when using:
createMachine({...})
or
model = createModel(); model.createMachine({...})
The text was updated successfully, but these errors were encountered: