You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
createUniqueId cannot be used under non-hydrating context #14
Hmm... Vite prerender? Can you point me to a project. I get why this error happens. It means that it is being used in a location where there is no id is available, which means it couldn't generate it even if it wanted to. But I want to understand the use case because this more granular approach to hydrating the meta tags kind of depends on it.
Oh the vite-plugin-ssr project. Yeah, the tricky part is I'm unclear when they call their lifecycle hooks. The expectation is that the solid-meta tags are called during Solid's render which means they should be under a hydrating context unless they are specifically opted out like the Assets tag. Which makes me think more than likely the tags are being called in an unexpected place. That being said, we need to document SSR proper usage a bit better.
Activity
ryansolid commentedon Jul 28, 2022
Hmm... Vite prerender? Can you point me to a project. I get why this error happens. It means that it is being used in a location where there is no id is available, which means it couldn't generate it even if it wanted to. But I want to understand the use case because this more granular approach to hydrating the meta tags kind of depends on it.
javiertury commentedon Jul 28, 2022
I'm fiddling with solidjs and vite to build a static page. My setup is based on this i18n recipe with pre-rendering.
Here is the example code of that recipe. I was trying to add solid-meta on top of that.
EDIT: And here is the base solidjs vite template.
ryansolid commentedon Jul 30, 2022
Oh the
vite-plugin-ssrproject. Yeah, the tricky part is I'm unclear when they call their lifecycle hooks. The expectation is that the solid-meta tags are called during Solid's render which means they should be under a hydrating context unless they are specifically opted out like the Assets tag. Which makes me think more than likely the tags are being called in an unexpected place. That being said, we need to document SSR proper usage a bit better.ryansolid commentedon Sep 22, 2022
I did make a change here that might have helped. Worth checking with the latest Solid.
kkharji commentedon Sep 29, 2022
Having similar issue. I'm trying to use a client library for rspc. However, I'm facing an error I couldn't quite fix:
I'm trying to use a client library for rspc. Which makes use of