Browse Source

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

zhangenming 5 years ago
parent
commit
960ef1691f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/reactivity/src/ref.ts

+ 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)
   }