Skip to content

Instantly share code, notes, and snippets.

View jeffrom's full-sized avatar

Jeff Martin jeffrom

  • San Francisco, CA
View GitHub Profile
@jeffrom
jeffrom / machine.js
Created January 21, 2020 16:18
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@jeffrom
jeffrom / machine.js
Created January 21, 2020 15:00
Generated by XState Viz: https://xstate.js.org/viz
const onCommit = {
COMMIT: {
target: 'committed',
actions: assign({
head: (_context, { commit }) => commit,
}),
//cond: (_context, { commit }) => !!commit,
},
}

Keybase proof

I hereby claim:

  • I am jeffrom on github.
  • I am jeffro (https://keybase.io/jeffro) on keybase.
  • I have a public key ASBIBwXQl9AT2bRHZY4ki0Ol96Z-1PJtNfnJeRn9aND51Ao

To claim this, I am signing this object: