Skip to content

Commit

Permalink
refactor(compiler-core): add auxiliary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Kruglov committed Apr 24, 2024
1 parent 5c4a24f commit afea264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-core/src/rendererTemplateRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ export function setRef(
}
} else if (!existing.includes(refValue)) {
// #10655 warn if reactive array used as a ref
if (
const reactiveAsRef =
__DEV__ &&
_isString &&
hasOwn(owner.devtoolsRawSetupState, ref) &&
!isRef(owner.devtoolsRawSetupState[ref]) &&
isReactive(owner.devtoolsRawSetupState[ref]) &&
hasOwn(setupState, '__isScriptSetup')
) {
if (reactiveAsRef) {
warn(
'In production mode reactive ref array will not be filled. ' +
'Use ref() instead.',
Expand Down

0 comments on commit afea264

Please sign in to comment.