Skip to content

Commit 8e6d82c

Browse files
committed
docs: translate migration guide > watch
1 parent 39fe7ba commit 8e6d82c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/guide/migration/watch.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: Watch on Arrays
2+
title: 配列の監視
33
badges:
44
- breaking
55
---
66

77
# {{ $frontmatter.title }} <MigrationBadges :badges="$frontmatter.badges" />
88

9-
## Overview
9+
## 概要
1010

11-
- **BREAKING**: When watching an array, the callback will only trigger when the array is replaced. If you need to trigger on mutation, the `deep` option must be specified.
11+
- **破壊的変更**: 配列を監視している場合、コールバックは配列が置き換えられたときにのみ実行します。配列の変更で実行する必要がある場合は、 `deep` オプションを指定する必要があります。
1212

13-
## 3.x Syntax
13+
## 3.x の構文
1414

15-
When using [the `watch` option](/api/options-data.html#watch) to watch an array, the callback will only trigger when the array is replaced. In other words, the watch callback will no longer be triggered on array mutation. To trigger on mutation, the `deep` option must be specified.
15+
[`watch` オプション](/api/options-data.html#watch) を使って配列を監視する場合、コールバックは配列が置き換えられたときにのみ実行します。言い換えれば、 watch コールバックは配列の変更では実行されなくなります。配列の変更で実行するには、 `deep` オプションを指定する必要があります。
1616

1717
```js
1818
watch: {
@@ -25,6 +25,6 @@ watch: {
2525
}
2626
```
2727

28-
## Migration Strategy
28+
## 移行の戦略
2929

30-
If you rely on watching array mutations, add the `deep` property to ensure that your callback is triggered correctly.
30+
配列の変更を監視することに依存している場合は、 `deep` プロパティを追加して、コールバックが正しく実行されるようにします。

0 commit comments

Comments
 (0)