Skip to content

Commit 3e88dcd

Browse files
authored
Update cheatsheet.mdx
Fixed incorrect transition targets
1 parent 7645d99 commit 3e88dcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/cheatsheet.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ const machine = createMachine({
4141
count: ({ context }) => context.count + 1,
4242
}),
4343
on: {
44-
toggle: { target: 'active' },
44+
toggle: { target: 'inactive' },
4545
},
4646
},
4747
inactive: {
4848
on: {
49-
toggle: { target: 'inactive' },
49+
toggle: { target: 'active' },
5050
},
5151
},
5252
},

0 commit comments

Comments
 (0)