We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa828ab commit 8dc97efCopy full SHA for 8dc97ef
packages/reactivity/src/computed.ts
@@ -49,7 +49,7 @@ let initSSR = false
49
*/
50
export class ComputedRefImpl<T = any> implements IComputed {
51
_value: T | undefined = undefined
52
- version = -1
+ globalVersion = -1
53
54
// Dependency
55
subs: Link | undefined = undefined
@@ -116,8 +116,8 @@ export class ComputedRefImpl<T = any> implements IComputed {
116
propagate(link)
117
}
118
119
- if (globalVersion !== this.version) {
120
- this.version = globalVersion
+ if (globalVersion !== this.globalVersion) {
+ this.globalVersion = globalVersion
121
this.update()
122
123
} else {
0 commit comments