Capítulo 73 de 116
addTransitionType(type) tags a transition with a named type string, letting a ViewTransition component's animation logic distinguish why an update is happening (a forward navigation vs. a back navigation vs. a deletion) and animate each case differently.
addTransitionType is invoked within the same startTransition-wrapped update it's meant to annotate, tagging that specific transition instance with a semantic label.ViewTransition: a <ViewTransition> in the resulting tree can read the active transition type(s) to choose different animation behavior — e.g. sliding left for "forward navigation" vs. sliding right for "back navigation," rather than using one generic animation for every state change.addTransitionType call can tag a single transition, letting animation logic respond to a combination of conditions rather than a single flat category.ViewTransition-based animation code enough context to differentiate transitions that would otherwise look identical from React's perspective.ViewTransition (Ch 71) — reading/reacting to the type is the animation layer's job, not this function's.