Skip to content

Commit faae0d7

Browse files
committed
actor-model.mdx: spawn/spawnChild
1 parent 087a2fa commit faae0d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/actor-model.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ So even for simple web apps, with small app-specific state and a few known app-s
6262
## XState
6363

6464
Actors in XState can:
65-
- **Create more actors** using the `spawn` action in a machine.
6665
- **Accept messages** as [events](transitions.mdx) sent by [action creators](actions.mdx) like [`raise`](actions#raise-action) or [`sendTo`](actions#send-to-action) in a machine, or from outside via `actor.send`.
66+
- **Create more actors** within a machine using `spawn` in an [`assign`](actions.mdx#assign-action), or using the `spawnChild` action creator, (see [Spawn](spawn.mdx) for details).
6767
- **Send more messages** as events using the [`sendTo`](actions.mdx#send-to-action) action creator in a machine, or `self.send` in their own logic.
6868

6969
Actors in XState have their own [actor logic](actors.mdx#actor-logic) which they use to:

0 commit comments

Comments
 (0)