Skip to content

Instantly share code, notes, and snippets.

View yazeedb's full-sized avatar

Yazeed Bzadough yazeedb

View GitHub Profile
@yazeedb
yazeedb / machine.js
Last active July 12, 2020 23:19
Generated by XState Viz: https://xstate.js.org/viz
const boardMachine = Machine({
initial: 'idle',
states: {
idle: {
on: {
CHANGE_COLUMN_NAME: 'changingColumnName',
CREATE_COLUMN: 'creatingColumn',
DELETE_COLUMN: 'deletingColumn',
MOVE_COLUMN: 'movingColumn',
SET_COLUMN_LIMIT: 'settingColumnLimit',
@yazeedb
yazeedb / machine.js
Created July 11, 2020 02:01
Generated by XState Viz: https://xstate.js.org/viz
const boardMachine = Machine({
id: 'board',
initial: 'idle',
states: {
idle: {
on: {
CHANGE_COLUMN_NAME: 'changingColumnName',
CREATE_COLUMN: 'creatingColumn',
DELETE_COLUMN: 'deletingColumn',
MOVE_COLUMN: 'movingColumn',
@yazeedb
yazeedb / machine.js
Last active July 6, 2020 22:58
Generated by XState Viz: https://xstate.js.org/viz
const boardMachine = Machine({
initial: 'idle',
states: {
idle: {
on: {
CHANGE_COLUMN_NAME: 'changingColumnName',
CREATE_COLUMN: 'creatingColumn',
DELETE_COLUMN: 'deletingColumn',
MOVE_COLUMN: 'movingColumn',
SET_COLUMN_LIMIT: 'settingColumnLimit',
@yazeedb
yazeedb / machine.js
Created November 24, 2019 02:51
Generated by XState Viz: https://xstate.js.org/viz
const m = Machine({
"id": "notification",
"initial": "closed",
"context": {
"message": "",
"notificationType": "info"
},
"states": {
"closed": {},
"opened": {