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
To produce output data from a machine which reached its final state, use the `output` property instead of `data`:
1123
1123
1124
-
1125
1124
<Tabs>
1126
1125
<TabItem value="v5" label="XState v5 beta">
1127
1126
@@ -1439,6 +1438,51 @@ actor.batch(events);
1439
1438
1440
1439
**Pre-migration tip:** Update v4 projects to loop over events to send them as a batch.
1441
1440
1441
+
### Use `snapshot.status==='done'` instead of `snapshot.done`
1442
+
1443
+
:::breakingchange
1444
+
1445
+
Breaking change
1446
+
1447
+
:::
1448
+
1449
+
The `snapshot.done` property, which was previously in the snapshot object of state machine actors, is removed. Use `snapshot.status==='done'` instead, which is available to all actors:
0 commit comments