I hereby claim:
- I am jondashkyle on github.
- I am jkm (https://keybase.io/jkm) on keybase.
- I have a public key ASDQ_bJp2caeHkpTuwoE9eZ5bdxr5cPkibnOHrl5VmBbQwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const onboardingMachineConfig = Machine( | |
{ | |
key: 'onboarding', | |
initial: 'disconnected', | |
context: { | |
ensLabel: '', | |
walletAddress: '', | |
writeAmount: 0, | |
isTokenCanvasLoaded: false, | |
isENSAvailable: false, |
// Pseudo-code of a pattern I use frequently. | |
const theTitle = 'Seeing is forgetting the name of the thing one sees' | |
const isActive = true | |
const duration = 420 | |
switch (true) { | |
case !!theTitle: | |
return 'Has a title!' | |
case isActive && duration > 300: |