Skip to content

[✨] deprecate signals on regular DOM attributes #56

@wmertens

Description

@wmertens

Is your feature request related to a problem?

When writing a component that forwards class, the correct way to forward it is (props.class as Signal<string>)?.value ?? props.class as string.

This is a mouthful and there's no reason to support this, because the optimizer will forward class={signal.value} correctly.

Describe the solution you'd like

Deprecate signals as DOM attribute values except where expected, like bind: value

Describe alternatives you've considered

.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions