kopper @w.on-t.work · 06/09/2026had an idea and got back into this for a tiny bit: instead of a `wrapLate` which only works for middleware, there's now a general `late` for doing pretty much anything pre-`handle` (which can especially be a good idea for pre-computing an aggregate of known metadata) 101
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