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
Description
Using pure() in xstate 4.7.8 seems to just throw errors or log warnings. Tried using it in event actions and state node entry and get the same result.
Got usage instructions from a discussion that I didn't want to hijack.
Expected Result
When I return an assign() action from pure(), I expect the context to be updated accordingly.
Actual Result
Following warning is raised and context does not get updated:
Warning: No implementation found for action type 'xstate.assign'
Description
Using
pure()
in xstate 4.7.8 seems to just throw errors or log warnings. Tried using it in eventactions
and state nodeentry
and get the same result.Got usage instructions from a discussion that I didn't want to hijack.
Expected Result
When I return an
assign()
action frompure()
, I expect the context to be updated accordingly.Actual Result
Following warning is raised and context does not get updated:
Reproduction
https://codesandbox.io/s/xstate-typescript-template-qzzhm
Additional context
xstate 4.7.8
The text was updated successfully, but these errors were encountered: