You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.