Skip to content

Hydrate never doesn't seem to work #116

@hsks

Description

@hsks

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:

<LazyHydrate never>
<Component-A>
</LazyHydrate>

Component-A:
<template>
Ssr mode is {{ isSsr }}
</template>

isSsr is a computed property that simply returns the value of process.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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions