Skip to content

Commit af603d5

Browse files
Merge branch 'next' of https://github.com/cerebral/overmind into next
2 parents 17324c8 + aecdda6 commit af603d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/overmind-website/examples/frontpage/effects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default () => [
22
{
33
code: `
44
export const api = {
5-
async fetchItems() => {
5+
async fetchItems() {
66
const response = await fetch('/api/items')
77
88
return response.json()

packages/overmind-website/guides/beginner/10_usingovermindwithvue.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ h(Example, { name: "guide/usingovermindwithvue/passprops_plugin" })
3333

3434
### State effects
3535

36-
To run effects in components based on changes to state you use the **addMutationListener** function in the lifecycle hooks of Vue.
36+
To run effects in components based on changes to state you use the **reaction** function in the lifecycle hooks of Vue.
3737

3838
```marksy
3939
h(Example, { name: "guide/usingovermindwithvue/effect" })
@@ -60,7 +60,7 @@ You can now access the **admin** state and actions directly with **state** and *
6060

6161
Vue has its own observable concept that differs from Overmind. That means you can not use Overmind state inside a computed and expect the computed cache to be busted when the Overmind state changes. But computeds are really for caching expensive computation, which you will not do inside a component using Overmind anyways.
6262

63-
What you might want is to introduce some logic, maybe combine som data from props. You can do so using a getter on your **data**.
63+
What you might want is to introduce some logic, maybe combine some data from props. You can do so using a getter on your **data**.
6464

6565
```marksy
6666
h(Example, { name: "guide/usingovermindwithvue/computed" })

0 commit comments

Comments
 (0)