I hereby claim:
- I am keithernet on github.
- I am keithernet (https://keybase.io/keithernet) on keybase.
- I have a public key ASA7BTfXUdGa6q9-swXa0LLJmHHIi2P2_JtCF860gU4qWwo
To claim this, I am signing this object:
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
const newMachine = { | |
id: 'newProduct', | |
initial: 'idle', | |
states: { | |
idle: { | |
on: { | |
save: 'saving' | |
} | |
}, | |
saving: { |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
const updateUserMachine = Machine({ | |
id: 'fetch', | |
initial: 'idle', | |
context: { | |
retries: 0 | |
}, | |
states: { | |
idle: { | |
on: { | |
FETCH: 'loading' |
function fetchSecondOptions(someId){ | |
return new Promise(resolve => { | |
setTimeout(() => resolve([]), 300); | |
}); | |
} | |
function fetchThirdOptions(someId){ | |
return new Promise(resolve => { | |
setTimeout(() => resolve([]), 500); |
const form = Machine({ | |
initial: 'noSelection', | |
states: { | |
noSelection: { | |
on: { | |
FIRST_SELECTED: 'firstSelected' | |
} | |
}, | |
firstSelected: { | |
initial: 'awaitingSelection', |
I hereby claim:
To claim this, I am signing this object: