Skip to content

Commit 39683ad

Browse files
docs(website): more notes on addMutationListener
1 parent cb19558 commit 39683ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/overmind-website/api/overmind.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can pass a second argument to the **Overmind** constructor. This is an optio
1010

1111
## addMutationListener
1212

13-
It is possible to listen to all mutations performed in Overmind. This allows you to create special effects based on mutations within a certain domain of your app, or whatever else you come up with.
13+
It is possible to listen to all mutations performed in Overmind. This allows you to create special effects based on mutations within a certain domain of your app, or whatever else you come up with. Note that this method triggers instantly when the mutation occurs, you might rather want to use **addFlushListener** to be notified about batched changes, like the components does.
1414

1515
```marksy
1616
h(Example, { name: "api/app_addMutationListener" })

0 commit comments

Comments
 (0)