We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 911e670 commit 31f7985Copy full SHA for 31f7985
packages/runtime-core/src/rendererTemplateRef.ts
@@ -2,6 +2,7 @@ import type { SuspenseBoundary } from './components/Suspense'
2
import type { VNode, VNodeNormalizedRef, VNodeNormalizedRefAtom } from './vnode'
3
import {
4
EMPTY_OBJ,
5
+ NO,
6
ShapeFlags,
7
hasOwn,
8
isArray,
@@ -77,7 +78,7 @@ export function setRef(
77
78
const rawSetupState = toRaw(setupState)
79
const canSetSetupRef =
80
setupState === EMPTY_OBJ
- ? () => false
81
+ ? NO
82
: (key: string) => {
83
if (__DEV__) {
84
if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) {
0 commit comments