This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// v6.1 | |
// assumes consumer prompt in every possible case | |
// no network requests | |
// no saving local data | |
// no saving network response | |
// actions not optimized | |
const withConsumerPromptMachine = Machine({ | |
id: 'withConsumerPromptAsDefault', | |
initial: 'closed', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// V3.2 | |
// Transitions, assuming no cancel, no fails, no loading (V3.2) | |
const simplifiedExistingMachine = Machine({ | |
id: 'simplifiedExisting', | |
initial: 'closed', | |
context: {}, | |
states: { | |
closed: { | |
on: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// V3.2 | |
// Transitions, assuming no cancel, no fails, no loading (V3.2) | |
const simplifiedExistingMachine = Machine({ | |
id: 'simplifiedExisting', | |
initial: 'closed', | |
context: {}, | |
states: { | |
closed: { | |
on: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// V3.1 | |
// Transitions, assuming no cancel, no fails, no loading (V3.1) | |
const simplifiedExistingMachine = Machine({ | |
id: 'simplifiedExisting', | |
initial: 'closed', | |
context: {}, | |
states: { | |
closed: { | |
on: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// v5 | |
// existing behavior | |
// no network requests | |
// no saving local data | |
// no saving network response | |
// actions not optimized | |
const groupedStateMachineCurrentBehavior = Machine({ | |
id: 'addressManager', | |
context: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// V4 | |
// Transitions, assuming hasPrompts, no cancel, no fails, no loading (V4) | |
const simplifiedPromptsMachine = Machine({ | |
id: 'simplifiedPrompts', | |
initial: 'closed', | |
states: { | |
closed: { | |
on: { | |
OPEN: 'addressList' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// V3 | |
// Transitions, assuming no cancel, no fails, no loading (V3) | |
const simplifiedExistingMachine = Machine({ | |
id: 'simplifiedExisting', | |
initial: 'closed', | |
context: {}, | |
states: { | |
closed: { | |
on: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// V1.1 basic with new vs existing address flow states | |
const addressManagerMachine = Machine({ | |
id: 'addressManager', | |
initial: 'closed', | |
states: { | |
closed: { | |
on: { | |
CLICK: 'addressList' | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 17ut2nUHmUwKcReoSembaVUixp7mvhBMkA https://explorer.blockstack.org/address/17ut2nUHmUwKcReoSembaVUixp7mvhBMkA |
NewerOlder