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.
triggerRefValue()
1 parent fbf214a commit 399f155Copy full SHA for 399f155
packages/reactivity/src/computed.ts
@@ -43,12 +43,13 @@ export class ComputedRefImpl<T> {
43
isSSR: boolean
44
) {
45
this.effect = new ReactiveEffect(getter, (_c) => {
46
- if (_c) {
47
- this._computedsToAskDirty.push(_c)
48
- triggerRefValue(this, this)
49
- }
50
- else if (!this._dirty) {
51
- this._dirty = true
+ if (!this._dirty) {
+ if (_c) {
+ this._computedsToAskDirty.push(_c)
+ }
+ else {
+ this._dirty = true
52
53
triggerRefValue(this, this)
54
}
55
})
0 commit comments