mirror of https://github.com/vuejs/core.git
chore: avoid unnecessary function call (#1464)
This commit is contained in:
parent
c269800631
commit
0017caf68b
|
@ -136,8 +136,8 @@ const BaseTransitionImpl = {
|
|||
const state = useTransitionState()
|
||||
|
||||
return () => {
|
||||
const children = getTransitionRawChildren(
|
||||
slots.default ? slots.default() : [],
|
||||
const children = slots.default && getTransitionRawChildren(
|
||||
slots.default(),
|
||||
true
|
||||
)
|
||||
if (!children || !children.length) {
|
||||
|
|
Loading…
Reference in New Issue