@@ -53,9 +53,6 @@ export class MotionState {
5353 */
5454 public currentProcess : ReturnType < typeof frame . render > | null = null
5555
56- // Depth in component tree for lifecycle ordering
57- public depth : number
58-
5956 // Base animation target values
6057 public baseTarget : DOMKeyframesDefinition
6158
@@ -72,8 +69,6 @@ export class MotionState {
7269 this . parent = parent
7370 // Add to parent's children set for lifecycle management
7471 parent ?. children ?. add ( this )
75- // Calculate depth in component tree
76- this . depth = parent ?. depth + 1 || 0
7772
7873 // Initialize with either initial or animate variant
7974 const initial = ( options . initial === undefined && options . variants ) ? this . context . initial : options . initial
@@ -173,8 +168,6 @@ export class MotionState {
173168 this . featureManager . beforeUnmount ( )
174169 }
175170
176- // Unmount motion state and optionally unmount children
177- // Handles unmounting in the correct order based on component tree
178171 unmount ( unMountChildren = false ) {
179172 /**
180173 * Unlike React, within the same update cycle, the execution order of unmount and mount depends on the component's order in the component tree.
@@ -228,7 +221,6 @@ export class MotionState {
228221 } )
229222 if ( isAnimate ) {
230223 this . animateUpdates ( {
231- isFallback : ! isActive && name !== 'exit' && this . visualElement . isControllingVariants ,
232224 isExit : name === 'exit' && this . activeStates . exit ,
233225 } )
234226 }
0 commit comments