2
0
Эх сурвалжийг харах

chore(reactivity): remove unnecessary RefImpl _shallow default value (#3895)

zhangenming 5 жил өмнө
parent
commit
960ef1691f

+ 1 - 1
packages/reactivity/src/ref.ts

@@ -56,7 +56,7 @@ class RefImpl<T> {
 
   public readonly __v_isRef = true
 
-  constructor(private _rawValue: T, public readonly _shallow = false) {
+  constructor(private _rawValue: T, public readonly _shallow: boolean) {
     this._value = _shallow ? _rawValue : convert(_rawValue)
   }