Skip to content

van.hydrate is not working correctly? #425

@creatormir

Description

@creatormir

I expect that when calling hydration, the entire DOM will be preserved and all reactivity/interactivity and events will be bound to it. However, I see that when calling hydration, all (even static) DOM is rendered.
Is this incorrect work of van.hydrate or am I doing something wrong?
For example, I modified the basic example: https://codesandbox.io/p/devbox/solitary-dream-fmqz28
Similar example in Vue (no re-rendering occurs): https://stackblitz.com/edit/vue-ssr-example-irrowjm5?file=client.js (auto-activation of hydrate after 7 seconds)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions