Xiphe/remix-island

Any way to use a context provider around the head ?

Closed this issue · 2 comments

Trying to figure out if there is any way to use a context provider around the head ?
Some parts of my head are defined into a config that I usually retrieve using a useConfig hook. Is there anyway to get this data in the head part ?

Xiphe commented

I'm afraid no, sorry.

The server markup is generated using two dedicated renders and the <Head /> component is being rendered outside of the context of your app...

As this is library serves only as a hacky workaround until react@18.3 lands I myself won't invest time to make it work but if you see a simple solution to this feel free to provide a PR.

@Xiphe React 18.3.1 is out. So do we still need this hacky workaround?