File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
packages/runtime-core/src/components Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -144,8 +144,6 @@ const BaseTransitionImpl: ComponentOptions = {
144
144
const instance = getCurrentInstance ( ) !
145
145
const state = useTransitionState ( )
146
146
147
- let prevTransitionKey : any
148
-
149
147
return ( ) => {
150
148
const children =
151
149
slots . default && getTransitionRawChildren ( slots . default ( ) , true )
@@ -211,23 +209,11 @@ const BaseTransitionImpl: ComponentOptions = {
211
209
const oldChild = instance . subTree
212
210
const oldInnerChild = oldChild && getKeepAliveChild ( oldChild )
213
211
214
- let transitionKeyChanged = false
215
- const { getTransitionKey } = innerChild . type as any
216
- if ( getTransitionKey ) {
217
- const key = getTransitionKey ( )
218
- if ( prevTransitionKey === undefined ) {
219
- prevTransitionKey = key
220
- } else if ( key !== prevTransitionKey ) {
221
- prevTransitionKey = key
222
- transitionKeyChanged = true
223
- }
224
- }
225
-
226
212
// handle mode
227
213
if (
228
214
oldInnerChild &&
229
215
oldInnerChild . type !== Comment &&
230
- ( ! isSameVNodeType ( innerChild , oldInnerChild ) || transitionKeyChanged )
216
+ ! isSameVNodeType ( innerChild , oldInnerChild )
231
217
) {
232
218
const leavingHooks = resolveTransitionHooks (
233
219
oldInnerChild ,
You can’t perform that action at this time.
0 commit comments