Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update caveats.md #562

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/guide/caveats.md
Expand Up @@ -64,7 +64,7 @@ export default class Posts extends Vue {
}
```

The above code intends to fetch post list on component initialization but the fetch will be called twice unexpectedly because of how Vue Class Component works.
The above code intends to fetch post list on component initialization but the fetch will be called once unexpectedly because of how Vue Class Component works.

It is recommended to write lifecycle hooks such as `created` instead of `constructor`:

Expand All @@ -85,4 +85,4 @@ export default class Posts extends Vue {
})
}
}
```
```