Skip to content

Hydration doesn't see the DOM diff #1716

@vchirikov

Description

@vchirikov

Describe the bug

Hi, I ran into issue with solidjs hydrate(), it doesn't see changes in the DOM between server/client render.

I use 2 IoC containers (inversifyjs) and code see the changes (createEffect, createMemo), but hydrate() doesn't update the DOM.

I've created a minimal repro without inversifyjs:

If I render() same code, I see right DOM, but hydrate() doesn't see the diff:

render

Your Example Website or App

https://github.com/vchirikov/solidjs-repro

Steps to Reproduce the Bug or Issue

  1. git clone https://github.com/vchirikov/solidjs-repro
  2. cd solidjs-repro
  3. npm install
  4. npm run dev

see the gif

Expected behavior

As a user I expect that hydrate() must check all the page and rerender changed parts.

Screenshots or Videos

repro

Platform

  • OS: Windows
  • Browser: Vivaldi
  • Version: 5.7.2921.60 (Stable channel)

Additional context

No response

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