Closed boneskull closed 5 months ago
Latest commit: 8edf73bd0beef067b11c7c7bf97dd571eea903c0
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
New prop is now actorId
@davidkpiano Suggestions committed
@davidkpiano Is that something I should be doing?
@davidkpiano Is that something I should be doing?
Yes please
@davidkpiano Done. Hope I did that right. It looks like a minor bump to me
This changes
DoneActorEvent
(xstate.done.actor.*
) andErrorActorEvent
(xstate.error.actor.*
) to have anactorId
prop which is equal to the ID of the Actor associated with the event.Previously, this information was only available by extracting it from the
type
property of the event object using string operations.Updated a test for
DoneActorEvent
to prove thatactorId
gets passed, but may want the same test for anErrorActorEvent
.Ref: https://discord.com/channels/795785288994652170/1250894522616123494