Major Changes
-
#4238
b4f12a517
Thanks @davidkpiano! - The steps in the paths returned from functions likegetShortestPaths(...)
andgetSimplePaths(...)
have the following changes:- The
step.event
property now represents theevent
object that resulted in the transition to thestep.state
, not the event that comes before the next step. - The
path.steps
array now includes the targetpath.state
as the last step.- Note: this means that
path.steps
always has at least one step.
- Note: this means that
- The first
step
now has the{ type: 'xstate.init' }
event
- The