From: zhangenming <282126346@qq.com> Date: Tue, 8 Jun 2021 13:58:02 +0000 (+0800) Subject: chore(reactivity): remove unnecessary RefImpl _shallow default value (#3895) X-Git-Tag: v3.1.2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=960ef1691fab648cc01bce10f232497c5750a57c;p=thirdparty%2Fvuejs%2Fcore.git chore(reactivity): remove unnecessary RefImpl _shallow default value (#3895) --- diff --git a/packages/reactivity/src/ref.ts b/packages/reactivity/src/ref.ts index 588f3e9908..fd8ac8218a 100644 --- a/packages/reactivity/src/ref.ts +++ b/packages/reactivity/src/ref.ts @@ -56,7 +56,7 @@ class RefImpl { 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) }