snapTo(index) searches the focused screen's navigator lineage for the most recent screen with snapPoints, then falls back to the most recent matching screen in global history. It moves that screen to the requested zero-based index.
TSX
Snap points are sorted in ascending order before the index is resolved. The call does nothing and logs a warning when no screen with snap points is available or the index is outside the configured range.
See Snap Points for screen configuration and live snap state.