Skip to content

Commit f724032

Browse files
committed
actors.mdx: reference ActorLogic
- reference the ActorLogic interface - remove old reference to `getSnapshot`
1 parent 6135890 commit f724032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/actors.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Actor logic is the actor’s logical “model” (brain, blueprint, DNA, etc.) I
4444
- [Event observable logic (`fromEventObservable(...)`)](migration.mdx#use-actor-logic-creators-for-invokesrc-instead-of-functions)
4545
- [Callback logic (`fromCallback(...)`)](cheatsheet.mdx#creating-callback-logic)
4646

47-
In XState, actor logic is defined by an object containing methods like `.transition(...)`, `.getInitialState()`, `.getSnapshot()`, and more. This object tells an interpreter how to update an actor’s internal state when it receives an event and which effects to execute (if any).
47+
In XState, actor logic is defined by an object implementing the `ActorLogic` interface, containing methods like `.transition(...)`, `.getInitialState()`, `.getPersistedState()`, and more. This object tells an interpreter how to update an actor’s internal state when it receives an event and which effects to execute (if any).
4848

4949
## Creating actors
5050

0 commit comments

Comments
 (0)