-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hydrate never
doesn't seem to work
#116
Comments
As I understand the default value of isSsr is "false" and as I understand you want to transfer server side value to the client, right? If I remember correctly it wont work. LazyHydrate is a client side tool, this is the reason why you see "false", ie on the client it falls back to the default "false" value. |
Hi, |
I had similar situation long time ago and if I remember correctly I came to the conclusion that: in case of "never" LazyHydrate simply reads default value of variable (as I understand, it is "false" in your case). |
It should be |
Hi,
Thanks for this amazing library.
I was trying this out with nuxt 2.x with hydrate
never
mode. The code looks something like this:isSsr
is a computed property that simply returns the value ofprocess.server
.For some reason, as soon as the page is rendered on the client side, Component A resolves to
Ssr mode is false
. It works fine when I turn javascript off, which means it's rendered correctly on the server side. I'm using nuxt in universal mode. Any idea how I can prevent hydration of such static components?The text was updated successfully, but these errors were encountered: