defer
Updates the pendingTargetState and initiates the deferred phase.
During this phase, the transition's targetState remains unchanged, keeping the transition in its current visual state. However, the new target is exposed via pendingTargetState, signaling to transition-aware components that a state change is pending. They can then use this information to perform early setup or apply custom logic for the pending state before the automatic transition is eventually started via animateTo.
If defer is called while an animation is already in progress (i.e., currentState != targetState), the animation will continue toward its current targetState while pendingTargetState is set. This allows components to respond to the pending state early, potentially concurrently with the ongoing animation.
Parameters
The state the transition should eventually animate to.