Skip to content

Instantly share code, notes, and snippets.

View jf423's full-sized avatar

WangChienChieh jf423

  • Taiwan,Taipei
View GitHub Profile
@jf423
jf423 / machine.js
Created May 6, 2021 03:50
Generated by XState Viz: https://xstate.js.org/viz
const LevelCarouselMachine = Machine({
id: 'LevelCarousel',
initial: 'default',
states: {
default: {
on: {
RERENDER_EMPTY: 'empty',
RERENDER_SUCCESS: 'success',
},
meta: {
@jf423
jf423 / machine.js
Created May 5, 2021 11:01
Generated by XState Viz: https://xstate.js.org/viz
const LevelItemMachine = Machine({
id: 'LevelItem',
initial: 'default',
states: {
default: {
on: {
RERENDER_EMPTY: 'empty',
RERENDER_SUCCESS: 'success',
},
meta: {
@jf423
jf423 / machine.js
Created May 5, 2021 10:51
Generated by XState Viz: https://xstate.js.org/viz
const LevelModalMachine = Machine({
id: 'LevelModal',
initial: 'default',
states: {
default: {
on: {
RERENDER_EMPTY: 'empty',
RERENDER_SUCCESS: 'success',
CLICK_CLOSE_BUTTON: 'onClose',
},
@jf423
jf423 / machine.js
Last active May 5, 2021 09:12
Generated by XState Viz: https://xstate.js.org/viz
const LevelMachine = Machine({
id: 'Level',
initial: 'default',
states: {
default: {
initial: 'initial',
states: {
initial: {
meta: {
test: ({ getByTestId }) => {
@jf423
jf423 / machine.js
Created April 21, 2021 02:16
Generated by XState Viz: https://xstate.js.org/viz
const walletMachine = Machine({
id: 'Wallet',
initial: 'default',
states: {
default: {
initial: 'initial',
states: {
initial: {
meta: {
test: ({ getByTestId }) => {
@jf423
jf423 / machine.js
Created January 2, 2021 13:13
Generated by XState Viz: https://xstate.js.org/viz
const contentMachine = Machine({
id: 'content',
initial: 'initiating',
states: {
initiating: {
on: {
FINISHED_INITIAL: 'login'
},
meta: {
test: ({ queryByTestId }) => {
@jf423
jf423 / machine.js
Created December 29, 2020 09:16
Generated by XState Viz: https://xstate.js.org/viz
const appMachine = Machine({
id: 'app',
initial: 'initiating',
states: {
initiating: {
on: {
FINISHED_INITIAL: 'initialled'
},
meta: {
test: ({ queryByTestId }) => {