Skip to content

Instantly share code, notes, and snippets.

Avatar

Yazeed Bzadough yazeedb

View GitHub Profile
View machine.js
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',
View machine.js
const boardMachine = Machine({
id: 'board',
initial: 'idle',
states: {
idle: {
on: {
CHANGE_COLUMN_NAME: 'changingColumnName',
CREATE_COLUMN: 'creatingColumn',
DELETE_COLUMN: 'deletingColumn',
MOVE_COLUMN: 'movingColumn',
View machine.js
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',
View machine.js
const m = Machine({
"id": "notification",
"initial": "closed",
"context": {
"message": "",
"notificationType": "info"
},
"states": {
"closed": {},
"opened": {