[✨] deprecate signals on regular DOM attributes #4950
Labels
STATUS-2: requires discussion
Requires further discussion before moving forward
TYPE: enhancement
New feature or request
WAITING FOR: team
Waiting for one of the core team members to review and reply
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
The text was updated successfully, but these errors were encountered: