Yeah i'm not trying to XY problem myself, i'm looking for other options because what I was going to do felt hacky.
This looks promising
I think what i'll do is in my header component either store the props and access them by messages or write to page.props