Skip to content

Commit 69468ca

Browse files
committed
Update computed.ts
1 parent 72a9b6f commit 69468ca

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

packages/reactivity/src/computed.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,23 +74,27 @@ export class ComputedRefImpl<T = any> implements IComputed {
7474
/**
7575
* @internal
7676
*/
77-
readonly __v_isRef = true
77+
get __v_isRef() {
78+
return true
79+
}
7880
// TODO isolatedDeclarations ReactiveFlags.IS_REF
7981
/**
8082
* @internal
8183
*/
8284
readonly __v_isReadonly: boolean
8385
// TODO isolatedDeclarations ReactiveFlags.IS_READONLY
8486

85-
// for backwards compat
86-
get effect(): this {
87-
return this
88-
}
89-
// for backwards compat
87+
/**
88+
* for backwards compat
89+
* @internal
90+
*/
9091
get dep(): Dependency {
9192
return this
9293
}
93-
// for backwards compat
94+
/**
95+
* for backwards compat
96+
* @internal
97+
*/
9498
get _dirty(): boolean {
9599
const flags = this.flags
96100
if (flags & SubscriberFlags.Dirty) {

0 commit comments

Comments
 (0)