Pattern

Routing Metadata Race

routing-metadata-availability-race

A request is processed before routing selects the matching APIRoute, so route metadata/handlers aren’t populated when middleware or early code runs, leading to missing or incorrect context until route matching is done explicitly.