Skip to content

Commit 8dc97ef

Browse files
committed
Update computed.ts [skip ci]
1 parent aa828ab commit 8dc97ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/reactivity/src/computed.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ let initSSR = false
4949
*/
5050
export class ComputedRefImpl<T = any> implements IComputed {
5151
_value: T | undefined = undefined
52-
version = -1
52+
globalVersion = -1
5353

5454
// Dependency
5555
subs: Link | undefined = undefined
@@ -116,8 +116,8 @@ export class ComputedRefImpl<T = any> implements IComputed {
116116
propagate(link)
117117
}
118118
}
119-
if (globalVersion !== this.version) {
120-
this.version = globalVersion
119+
if (globalVersion !== this.globalVersion) {
120+
this.globalVersion = globalVersion
121121
this.update()
122122
}
123123
} else {

0 commit comments

Comments
 (0)