Skip to content

Commit

Permalink
Update reactivity-fundamentals.md (vuejs-translations#1608) (vuejs-tr…
Browse files Browse the repository at this point in the history
…anslations#352)

In the DOM Update Timing section's example, it seems we should use state.count++(which has been shown above) instead of count.value++(which comes later).

Co-authored-by: Wang Ningning <[email protected]>
  • Loading branch information
jay-es and WangNingning1994 authored Mar 10, 2022
1 parent f1ee289 commit a649394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/essentials/reactivity-fundamentals.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ To wait for the DOM update to complete after a state change, you can use the [ne
import { nextTick } from 'vue'

function increment() {
count.value++
state.count++
nextTick(() => {
// access updated DOM
})
Expand Down

0 comments on commit a649394

Please sign in to comment.