I hereby claim:
- I am martypenner on github.
- I am martypenner (https://keybase.io/martypenner) on keybase.
- I have a public key ASC1bDVufJRiPju-9mhTQPjr7RU2UdEFexr6Da8bE_cFnwo
To claim this, I am signing this object:
const machine = Machine({ | |
id: 'backoffFetch', | |
context: { | |
status: 'green', | |
retryCount: 0, | |
}, | |
type: 'parallel', | |
states: { | |
health: { | |
initial: 'healthy', |
const machine = Machine({ | |
id: 'backoffFetch', | |
context: { | |
status: 'green', | |
retryCount: 0, | |
}, | |
initial: 'fetching', | |
states: { | |
waiting: { | |
initial: 'success', |
const machine = Machine({ | |
id: 'switcherList', | |
initial: 'offscreen', | |
states: { | |
offscreen: { | |
on: { | |
OPENED: 'opening' | |
} | |
}, | |
onscreen: { |
const taxSettingsMachine = Machine( | |
{ | |
id: 'taxSettings', | |
type: 'parallel', | |
context: { | |
eventInfo: { | |
country: '', | |
status: null, | |
}, | |
isMarketplaceState: false, |
const processItem = ({ subEvents: appliesToSubEvents, fromDate, toDate, ...item }) => ({ | |
...item, | |
appliesToSubEvents: appliesToSubEvents || [], | |
fromDate: fromDate == null || (typeof fromDate === 'string' && fromDate.trim() === '') ? null : moment(fromDate), | |
toDate: toDate == null || (typeof toDate === 'string' && toDate.trim() === '') ? null : moment(toDate), | |
}); | |
const lineItemsMachine = Machine( | |
{ | |
strict: true, |
const dashboardMachine = Machine( | |
{ | |
id: 'dashboard', | |
context: { | |
organizations: [], | |
currentOrganization: null, | |
currentPeriod: null, | |
reservations: [] | |
}, | |
states: { |
Initializing* | |
Authenticating* | |
authenticated -> Authorizing | |
not authenticated -> Not authenticated | |
Authorizing | |
authorized -> Fetching initial data | |
not authorized -> Not authorized | |
Fetching initial data |
const passcodeMachine = Machine({ | |
id: 'passcode', | |
initial: 'hidden', | |
states: { | |
revealed: { | |
on: { | |
HIDE: 'hidden' | |
} | |
}, | |
hidden: { |
I hereby claim:
To claim this, I am signing this object:
const machine = Machine( | |
{ | |
id: 'debouncedFetchLatest', | |
initial: 'idle', | |
states: { | |
idle: {}, | |
success: {}, | |
failure: { | |
initial: 'other', | |
states: { |