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
subscription callback is invoked when a new state is reached. The subscription callback is invoked with context, sharedData, and currentStateId, available on the machine instance. The only element not available is the event. This limits the capability because I cannot update the context using event.
Use case
I would like to implement event sourcing.
subscription
callback is invoked when a new state is reached. Thesubscription
callback is invoked withcontext
,sharedData
, andcurrentStateId
, available on the machine instance. The only element not available is the event. This limits the capability because I cannot update thecontext
usingevent
.Proposed enhancement
From type perspective:
I can provide a PR to address this.
The text was updated successfully, but these errors were encountered: