Function persistentInvocableSource

  • Format a persistent instance descriptor to use as an xstate invoke source.

    Use like this:

    createMachine({
    states: {
    idle: {
    invoke: {
    src: invocableSource({
    machineName: "myMachine",
    machineInstanceName: "myMachineInstance",
    machineVersionId: "ver_myMachineVersion",
    }),
    }
    }
    })

    Parameters

    Returns {
        machineInstanceName: string;
        machineName: string;
        machineVersionId: string;
        type: string;
    }

    An object to be provided as the src property of an xstate invoke.

    • machineInstanceName: string
    • machineName: string
    • machineVersionId: string
    • type: string

Generated using TypeDoc