You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current type definitions for Preact don't allow the use of a signal in the value prop of an <input /> element, like for example when trying to create a typical two-way data binding. Attempting to do something like:
Type 'Signal<string>' is not assignable to type 'string | number | string[] | undefined'.
At this moment, you either have to manually recast it (e.g. input as any) or use the .value property of the signal which causes unnecessary re-renders of the component.
The text was updated successfully, but these errors were encountered:
Current type definitions for Preact don't allow the use of a signal in the
value
prop of an<input />
element, like for example when trying to create a typical two-way data binding. Attempting to do something like:gives you the TS error:
At this moment, you either have to manually recast it (e.g.
input as any
) or use the.value
property of the signal which causes unnecessary re-renders of the component.The text was updated successfully, but these errors were encountered: