Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 31f7985

Browse files
chore(runtime-core): use NO instead of ()=>false (#13695)
1 parent 911e670 commit 31f7985

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎packages/runtime-core/src/rendererTemplateRef.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { SuspenseBoundary } from './components/Suspense'
22
import type { VNode, VNodeNormalizedRef, VNodeNormalizedRefAtom } from './vnode'
33
import {
44
EMPTY_OBJ,
5+
NO,
56
ShapeFlags,
67
hasOwn,
78
isArray,
@@ -77,7 +78,7 @@ export function setRef(
7778
const rawSetupState = toRaw(setupState)
7879
const canSetSetupRef =
7980
setupState === EMPTY_OBJ
80-
? ()=>false
81+
? NO
8182
: (key: string) => {
8283
if (__DEV__) {
8384
if (hasOwn(rawSetupState, key) && !isRef(rawSetupState[key])) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /