From 190ab872937ca57881c28e4a97571486dda3f03e Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 18 Sep 2020 00:07:54 -0400 Subject: [PATCH] docs: update watch behavior adjustments --- src/guide/migration/introduction.md | 2 +- src/guide/reactivity-computed-watchers.md | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/guide/migration/introduction.md b/src/guide/migration/introduction.md index d90cd0a1e6..43b37281e6 100644 --- a/src/guide/migration/introduction.md +++ b/src/guide/migration/introduction.md @@ -92,7 +92,7 @@ The following consists a list of breaking changes from 2.x: - [The `data` option from mixins is now merged shallowly](/guide/migration/data-option.html#mixin-merge-behavior-change) - [Attributes coercion strategy changed](/guide/migration/attribute-coercion.html) - [Some transition classes got a rename](/guide/migration/transition.html) -- [Component watch option](/api/options-data.html#watch) and [instance method `$watch`](/api/instance-methods.html#watch) no longer supports dot-delimited string paths, use a computed function as the parameter instead. +- When using [the `watch` option](/api/options-data.html#watch) to watch an array, the callback will only trigger when the array is replaced, and no longer trigger on array mutation. To trigger on mutation, the `deep` option must be specified. This is a side effect of more precise dependency tracking in Vue 3. - `