Skip to content

bool property renders differently on client vs server #2585

@farnoy

Description

@farnoy

Describe the bug

bool: properties render differently on the server vs client (after mounting).

Your Example Website or App

https://github.com/farnoy/solid-repro-bool/blob/212792c781e4b0a2844225a9005956aa6dab9273/src/components/Counter.tsx#L4-L13

Steps to Reproduce the Bug or Issue

  1. run dev server in https://github.com/farnoy/solid-repro-bool
  2. load the page
  3. inspect is-ten attribute of the Counter button
  4. increment the counter by clicking
  5. See the attribute disappear because the client library removes it while the value is still falsy

Expected behavior

is-btn should be absent in the initial render coming from the server, to align with how client code renders it

Screenshots or Videos

No response

Platform

  • OS: Linux
  • Browser: Chromium
  • Version: 144

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