Skip to content

Commit 6605a35

Browse files
committed
Update documentation for xstate local transitions
1 parent f9b8a5a commit 6605a35

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

_glossary/local-transition.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,13 @@ In xstate, an internal transition is described by prefixing the target state wit
6060
}
6161
```
6262

63-
When the machine receives the "RESET" signal, the "ALPHABET" state doesn't exit / enter, only the `fake_state` exits / enters with no side effects.
63+
You can also specify an internal transition more explicitly:
64+
65+
```javascript
66+
RESET: [{ target: 'A', internal: true }]
67+
```
68+
69+
Important to note that `internal: false` is the default (follows SCXML).
6470

6571
## SCXML
6672

0 commit comments

Comments
 (0)