Skip to content

Commit ff4b790

Browse files
authored
Merge pull request #374 from josephfh/patch-1
Add missing sendTo in imports, sort imports alphabetically
2 parents 23f2701 + bc60652 commit ff4b790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/callback-actors.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Callback actors are actors whose logic is represented by a function that can "ca
1919
You can define callback actor logic using the `fromCallback(...)` actor logic creator, which takes a callback function and returns actor logic that can be used to create callback actors.
2020

2121
```ts
22-
import { fromCallback, createActor, createMachine } from 'xstate';
22+
import { createActor, createMachine, fromCallback, sendTo } from 'xstate';
2323

2424
const resizeLogic = fromCallback(({ sendBack, receive }) => {
2525
const resizeHandler = (event) => {

0 commit comments

Comments
 (0)