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