Skip to content

Instantly share code, notes, and snippets.

@drivasperez
drivasperez / machine.js
Last active January 9, 2020 09:51
Generated by XState Viz: https://xstate.js.org/viz
const initialContext = {
betDetails: null,
settleDetails: null,
balanceDetails: null,
barcode: null,
scannedBarcode: null,
cashDrawerOpen: false,
playerDetails: null,
playersID: null,
sportsbookDetails: null,
import { Action } from "../../../types/ReducerInterfaces";
import { {{ reducer_name }} } from "../../../types/Users/{{ to_camel_case(reducer_name) }}Interfaces";
import {
FETCH_{{ constant_name }}S,
SEND_NEW_{{ constant_name }},
RESET_SEND_{{ constant_name }}_STATUS,
} from "./rolesConstants";
export const fetch{{ reducer_name }}s = (): Action => ({
type: FETCH_{{ constant_name }}S,