Skip to content

Commit 68ed4c6

Browse files
authored
Update performance.md (vuejs#1987)
1 parent 63b8169 commit 68ed4c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/best-practices/performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const shallowArray = shallowRef([
153153
// this won't trigger updates...
154154
shallowArray.value.push(newObject)
155155
// this does:
156-
shallowArray.value = [...shallowArr.value, newObject]
156+
shallowArray.value = [...shallowArray.value, newObject]
157157

158158
// this won't trigger updates...
159159
shallowArray.value[0].foo = 1

0 commit comments

Comments
 (0)