Skip to content

Solid 2.0 - Textarea hydration bug #3691

Description

@sabercoy

Describe the bug

A textarea with a reactive value causes hydration issues.

Hydration key miss for "170300310002": no server-rendered element carries this key (template: <button class=increment type=button>Clicks: <!$><!/>). A detached element was created instead; its subtree will not appear in the document or become interactive. This usually means the server and client hydration id namespaces are misaligned — when hydrating a subtree of a larger server render, wrap the document shell in <NoHydration> and re-enter with <Hydration> around the hydrated subtree (or pass hydrate() a renderId matching the server's <Hydration id>).
web.dev-D1p1Q9NU.js?v=7555594c:1570 Hydration completed with 1 unclaimed server-rendered node(s):
  <button _hk="170300310003" class="increment" type="button">Clicks: <!--$-->0<!--/--></button>

Your Example Website or App

https://github.com/sabercoy/solid2-textarea-hydration-bug

Steps to Reproduce the Bug or Issue

Run the app and see the errors in the console. It is a basic create-solid app with only the index.tsx page modified.

Expected behavior

No errors.

Screenshots or Videos

No response

Platform

  • OS: Linux
  • Browser: Chrome

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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