Skip to content

Commit 4f71f8a

Browse files
yyx990803ferferga
andauthored
Apply suggestions from code review
Co-authored-by: Fernando Fernández <[email protected]>
1 parent 6db71b2 commit 4f71f8a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Diff for: packages/runtime-core/src/components/BaseTransition.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ const BaseTransitionImpl: ComponentOptions = {
227227
instance.update()
228228
}
229229
delete leavingHooks.afterLeave
230-
oldInnerChild = undefined
231230
}
232231
return emptyPlaceholder(child)
233232
} else if (mode === 'in-out' && innerChild.type !== Comment) {
@@ -246,20 +245,14 @@ const BaseTransitionImpl: ComponentOptions = {
246245
earlyRemove()
247246
el[leaveCbKey] = undefined
248247
delete enterHooks.delayedLeave
249-
oldInnerChild = undefined
250248
}
251249
enterHooks.delayedLeave = () => {
252250
delayedLeave()
253251
delete enterHooks.delayedLeave
254-
oldInnerChild = undefined
255252
}
256253
}
257-
} else {
258-
oldInnerChild = undefined
259254
}
260-
} else if (oldInnerChild) {
261-
oldInnerChild = undefined
262-
}
255+
oldInnerChild = undefined
263256

264257
return child
265258
}

0 commit comments

Comments
 (0)