Skip to content

Commit

Permalink
chore: avoid redundant isRef check
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 29, 2022
1 parent 439377b commit 3538f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/rendererTemplateRef.ts
Expand Up @@ -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__) {
Expand Down

0 comments on commit 3538f17

Please sign in to comment.