How do I access route context in a Route's meta()?

If I use

meta: ({match: { routeContext: { someField } } }) => { ... }

or

meta: ({match: { context : { someField } } }) => { ... }


... in both cases, they are undefined. I do not want to have the data I am accessing in meta be returned in the loader, because the data was loaded in a parent match's
beforeLoad
function. Having the data returned in loader will serialize it to the client and cause the data to be duplicated in the initial SSR'd HTML payload.
Was this page helpful?