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
{{ message }}
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.
When defining actions on a transition, if a single inline action is defined – as per the example in the XState documentation – the type definitions cause an error. Wrapping the action in an array works as expected.
// Fails
on: {
actions: (context,event)=>console.log('Fails!');}// Works
on: {
actions: [(context,event)=>console.log('Works!');]}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When defining
actions
on a transition, if a single inline action is defined – as per the example in the XState documentation – the type definitions cause an error. Wrapping the action in an array works as expected.The text was updated successfully, but these errors were encountered: