Skip to content

ui: Card/Text as prop throws on hydration inside an island build #488

Description

@ivndev001

const Tag = props.as ?? 'div'; <Tag> compiles to a component call in the island bundle: TypeError: e is not a function ('e' is "div") on hydration (measured in dz-showcase, recorded in its former StatTile header). Every component added in 20.2.0 uses intrinsic tags for this reason. Fix: render a fixed set of intrinsic tags via a switch, or drop as.

🤖 Generated with Claude Code

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions