SolidJSS
SolidJSโ€ข4mo agoโ€ข
2 replies
chanon_s

How to have tags in <head> in <StartServer> render using async loaded data?

I am trying to setup lots of meta tags (eg. for Facebook Open Graph) and also page Schema (which is a <script> tag).

Some of the data in there needs to depend on async loaded data.

But I can't even get createResource to work inside StartServer (just having a createResource in it results in a hydration error).

Also I need it to work with SSR for SEO.

The @solidjs/meta package is way inadequate for this.

What kind of approach can I use?
Was this page helpful?