Skip to content

Commit 4af8a1a

Browse files
committed
fromEvent (not fromEventPattern)
1 parent 22bbfc5 commit 4af8a1a

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
@@ -359,7 +359,7 @@ Sending events to event observable actors will have no effect.
359359
import { fromEvent } from 'rxjs';
360360

361361
const mouseClickLogic = fromEventObservable(() =>
362-
fromEventPattern(document.body, 'click'),
362+
fromEvent(document.body, 'click') as Subscribable<EventObject>
363363
);
364364

365365
const canvasMachine = createMachine({

0 commit comments

Comments
 (0)