Skip to content

Commit

Permalink
Update reactivity-fundamentals.md (#1512)
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-es authored Jul 31, 2023
1 parent 8424074 commit eb24307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/guide/essentials/reactivity-fundamentals.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ console.log(proxy.nested === raw) // false
state = reactive({ count: 1 })
```

3. **分割代入できない:** また、リアクティブなオブジェクトのプロパティをローカル変数に分割代入したり、そのプロパティを関数に渡したりすると、下記に示すようにリアクティブなつながりが失われることとなります:
3. **分割代入できない:** また、リアクティブなオブジェクトのプリミティブ型のプロパティをローカル変数に分割代入したり、そのプロパティを関数に渡したりすると、下記に示すようにリアクティブなつながりが失われることとなります:

```js
const state = reactive({ count: 0 })
Expand All @@ -455,7 +455,7 @@ console.log(proxy.nested === raw) // false
// 元の状態に戻りません。
count++
// この関数が受け取る平文番号と
// この関数は数値を受け取りますが、これだと
// state.count の変更を追跡することができません。
// リアクティビティーを維持するためには、オブジェクト全体を渡す必要があります
callSomeFunction(state.count)
Expand Down

1 comment on commit eb24307

@vercel
Copy link

@vercel vercel bot commented on eb24307 Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.