kopper @w.on-t.work · 06/09/2026there's also a lighter version as `metadata.onFinalize` which lets you derive new metadata for a route from an aggregate of all metadata declared for them (including of parents, but before running their own onFinalizes) 100
kopper @w.on-t.work · 06/09/2026the goal with all of these is to have middleware that acts globally, but can still make use of metadata declared in child routes and of "the current route", whose metadata you can only find out after doing all the routing to begin with 100
kopper @w.on-t.work · 06/09/2026so you can use `late` for something like "what query parameters will this request ever make use of" and `metadata.onFinalize` for something like "what query parameters will the entire application ever make use of" 100