chore: avoid redundant isRef check

This commit is contained in:
Evan You 2022-05-30 07:43:18 +08:00
parent 439377b220
commit 3538f17a07

View File

@ -107,7 +107,7 @@ export function setRef(
if (hasOwn(setupState, ref)) {
setupState[ref] = value
}
} else if (isRef(ref)) {
} else if (_isRef) {
ref.value = value
if (rawRef.k) refs[rawRef.k] = value
} else if (__DEV__) {