Skip to content

Commit d27b0f4

Browse files
Update versioned_docs/version-5/migration.mdx
Co-authored-by: Kevin Maes <[email protected]>
1 parent 918538f commit d27b0f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

versioned_docs/version-5/migration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ Breaking change
971971

972972
`interpret(machine).start(state)` is now `createActor(machine, { state }).start()`
973973

974-
To restore an actor at a specific state, you should now pass the state into the `state` property of the `options` argument of `createActor(logic, options)`. The `actor.start()` property no longer takes in a `state` argument.
974+
To restore an actor at a specific state, you should now pass the state as the `state` property of the `options` argument of `createActor(logic, options)`. The `actor.start()` property no longer takes in a `state` argument.
975975

976976
<Tabs>
977977
<TabItem value="v5" label="XState v5 beta">

0 commit comments

Comments
 (0)