Skip to content

Instantly share code, notes, and snippets.

View thiagoadsix's full-sized avatar

Thiago Andrade Silva thiagoadsix

View GitHub Profile
Porque você deveria utilizar LocalStack
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
@thiagoadsix
thiagoadsix / machine.js
Created October 15, 2020 12:14
Generated by XState Viz: https://xstate.js.org/viz
const bookingMachine = Machine(
{
id: 'booking',
type: 'parallel',
states: {
communicate: {
initial: 'idle',
states: {
idle: {
on: {
@thiagoadsix
thiagoadsix / machine.js
Last active October 7, 2020 00:16
Generated by XState Viz: https://xstate.js.org/viz
const bookingMachine = Machine(
{
id: 'booking',
type: 'parallel',
states: {
communicate: {
on: {
'view.piece.done': {
actions: send('view.piece.done', {
to: `callbackInvoke`
@thiagoadsix
thiagoadsix / machine.js
Last active October 1, 2020 18:58
Generated by XState Viz: https://xstate.js.org/viz
const bookingMachine = Machine(
{
id: 'booking',
initial: 'marriage',
type: 'parallel',
states: {
marriage: {
type: 'parallel',
states: {
squire: {
@thiagoadsix
thiagoadsix / machine.js
Created September 29, 2020 20:25
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine({
id: 'fetch',
initial: 'choosing',
states: {
choosing: {
type: 'parallel',
states: {
squire: {
initial: 'querying',
states: {
@thiagoadsix
thiagoadsix / machine.js
Last active October 1, 2020 13:52
Generated by XState Viz: https://xstate.js.org/viz
const bookingMachine = Machine(
{
id: 'booking',
initial: 'marriage',
states: {
marriage: {
type: 'parallel',
states: {
squire: {
initial: 'queryingSquire',
@thiagoadsix
thiagoadsix / machine.js
Created September 28, 2020 12:11
Generated by XState Viz: https://xstate.js.org/viz
const bookingMachine = Machine({
id: 'booking',
initial: 'choosing',
states: {
choosing: {
type: 'parallel',
states: {
squire: {
initial: 'queryingSquire',
states: {
@thiagoadsix
thiagoadsix / machine.js
Last active September 25, 2020 14:44
Generated by XState Viz: https://xstate.js.org/viz
const bookingMachine = Machine({
id: 'booking',
initial: 'choosing',
states: {
choosing: {
type: 'parallel',
states: {
squire: {
initial: 'querying',
states: {
@thiagoadsix
thiagoadsix / machine.js
Last active September 24, 2020 20:36
Generated by XState Viz: https://xstate.js.org/viz
const bookingMachine = Machine({
id: 'booking',
initial: 'choosing',
states: {
choosing: {
type: 'parallel',
states: {
squire: {
initial: 'querying',
states: {