Skip to content

Commit

Permalink
Update .changeset/modern-spies-cry.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jun 6, 2023
1 parent d182ddc commit 55cbfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/modern-spies-cry.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@xstate/fsm': patch
---

Fixed state types when initializing the machine, as well as when switching to another state. Previously, the "string" type was used for this, which allowed any value to be passed and led to a subtle error in a running application. After this change, the error will be seen at the development stage.
Pass around `TState['value']` type to `Transition` and `.initial` property of the machine configuration.

0 comments on commit 55cbfd7

Please sign in to comment.