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 72a9b6f commit 69468caCopy full SHA for 69468ca
packages/reactivity/src/computed.ts
@@ -74,23 +74,27 @@ export class ComputedRefImpl<T = any> implements IComputed {
74
/**
75
* @internal
76
*/
77
- readonly __v_isRef = true
+ get __v_isRef() {
78
+ return true
79
+ }
80
// TODO isolatedDeclarations ReactiveFlags.IS_REF
81
82
83
84
readonly __v_isReadonly: boolean
85
// TODO isolatedDeclarations ReactiveFlags.IS_READONLY
86
- // for backwards compat
- get effect(): this {
87
- return this
88
- }
89
+ /**
+ * for backwards compat
+ * @internal
90
+ */
91
get dep(): Dependency {
92
return this
93
}
94
95
96
97
98
get _dirty(): boolean {
99
const flags = this.flags
100
if (flags & SubscriberFlags.Dirty) {
0 commit comments