Skip to content

Instantly share code, notes, and snippets.

@kdgerona
kdgerona / machine.js
Last active June 19, 2021 05:36
Generated by XState Viz: https://xstate.js.org/viz
const context = {
application_config: {
max_attempts: 5,
},
application_data: {
attempts: 0,
},
}
const implementations = {
@kdgerona
kdgerona / machine.js
Created June 19, 2021 01:19
Generated by XState Viz: https://xstate.js.org/viz
const context = {
application_config: {
max_attempts: 5,
},
application_data: {
attempts: 0,
},
};
@kdgerona
kdgerona / machine.js
Last active June 18, 2021 23:57
Generated by XState Viz: https://xstate.js.org/viz
const context = {
application_config: {
max_attempts: 5,
},
application_data: {
attempts: 0,
},
};
const config = {
@kdgerona
kdgerona / machine.js
Last active June 18, 2021 23:57
Generated by XState Viz: https://xstate.js.org/viz
const context = {
application_config: {
max_attempts: 5,
},
application_data: {
attempts: 0,
},
};
@kdgerona
kdgerona / machine.js
Last active June 18, 2021 23:57
Generated by XState Viz: https://xstate.js.org/viz
const context = {
application_config: {
max_attempts: 5,
},
application_data: {
attempts: 0,
},
};
@kdgerona
kdgerona / machine.js
Last active June 18, 2021 23:57
Generated by XState Viz: https://xstate.js.org/viz
const context = {
application_config: {
max_attempts: 5,
},
application_data: {
attempts: 0,
},
};
const config = {
@kdgerona
kdgerona / machine.js
Last active June 11, 2021 17:27
Generated by XState Viz: https://xstate.js.org/viz
const context = {
config: {
max_attempts: 5
},
data: {
fields: {},
entity_id: '',
entity: 'users',
isSaveAndClose: false,
attempts: 0
@kdgerona
kdgerona / machine.js
Last active June 11, 2021 17:26
Generated by XState Viz: https://xstate.js.org/viz
const context = {
config: {},
data: {
entity_id: '',
entity: 'users',
selected_navigation: '',
navigations: [],
browse: [],
fullScreenedComponent: {
component_name: ''
@kdgerona
kdgerona / machine.js
Last active November 10, 2020 17:18
Generated by XState Viz: https://xstate.js.org/viz
// GenerateWorkers
const worker_data = [
{worker_id: 0},
{worker_id: 1},
{worker_id: 2},
]
const workers_config = worker_data.reduce((acc, curr) => {
const { worker_id } = curr
@kdgerona
kdgerona / machine.js
Last active November 9, 2020 23:47
Generated by XState Viz: https://xstate.js.org/viz
// GenerateWorkers
const worker_data = [
{worker_id: 0},
{worker_id: 1},
{worker_id: 2},
]
const workers_config = worker_data.reduce((acc, curr) => {
const { worker_id } = curr