Skip to content

Commit cd32dac

Browse files
options api - immediate watcher handler runs before "created" (vuejs#2057)
* options api - immediate watcher handler runs before "created" Think this might worth mentioning as recently I introduced and fixed few bugs in a vue app without knowing it. * Update src/guide/essentials/watchers.md Co-authored-by: skirtle <[email protected]> Co-authored-by: skirtle <[email protected]>
1 parent 381861a commit cd32dac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/guide/essentials/watchers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ export default {
244244
}
245245
```
246246

247+
The initial execution of the handler function will happen just before the `created` hook. Vue will have already processed the `data`, `computed`, and `methods` options, so those properties will be available on the first invocation.
247248
</div>
248249

249250
<div class="composition-api">

0 commit comments

Comments
 (0)