Skip to content

Commit

Permalink
docs: improve the description of beforeCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicklaus6 committed Feb 21, 2024
1 parent 6505ade commit 65bb73a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/options-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Called when the instance is initialized.

- **Details**

Called immediately when the instance is initialized, after props resolution, before processing other options such as `data()` or `computed`.
Called immediately when the instance is initialized and props are resolved .

Then the props will be defined as reactive properties and the state such as `data()` or `computed` will be set up.

Note that the `setup()` hook of Composition API is called before any Options API hooks, even `beforeCreate()`.

Expand Down

0 comments on commit 65bb73a

Please sign in to comment.