Skip to content

Commit df61077

Browse files
Merge pull request cerebral#241 from lrn2prgrm/patch-2
Small changes in overmind api docs
2 parents 3df8b9e + 7497911 commit df61077

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/overmind-website/api/overmind.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ 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. 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.
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 before 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" })
1717
```
1818

1919
## addFlushListener
2020

21-
The **addMutationListener** triggers whenever there is a mutation. The **addFLushListener** triggers whenever Overmind tells components to render again. It can have multiple mutations related to it.
21+
The **addMutationListener** triggers whenever there is a mutation. The **addFlushListener** triggers whenever Overmind tells components to render again. It can have multiple mutations related to it.
2222

2323
```marksy
2424
h(Example, { name: "api/app_addFlushListener" })

0 commit comments

Comments
 (0)