Skip to content

Commit 0017caf

Browse files
authored
chore: avoid unnecessary function call (vuejs#1464)
1 parent c269800 commit 0017caf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-core/src/components/BaseTransition.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ const BaseTransitionImpl = {
136136
const state = useTransitionState()
137137

138138
return () => {
139-
const children = getTransitionRawChildren(
140-
slots.default ? slots.default() : [],
139+
const children = slots.default && getTransitionRawChildren(
140+
slots.default(),
141141
true
142142
)
143143
if (!children || !children.length) {

0 commit comments

Comments
 (0)