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
This suggestion is submitted by @titoBouzout and comes from a recent conversation related to oncapture and once.
Solid currently has <div oncapture:click={bla} /> as well as <MyComponent>{/*@once*/ state.wontUpdate}</MyComponent> however that can be quite limiting. It would be interesting to explore the idea of stacking the colons <div onClick:capture:once={bla}/> or maybe if not delegate <div on:click:capture:once={bla} />.
There are a couple concerns regarding parsing this and breaking HTML validity. This would also break TS.
JSX FeatureAn idea directly related to enhancing JSX.Fixing IssuesFixing an issue that is limited or restricted in JSX.
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This suggestion is submitted by @titoBouzout and comes from a recent conversation related to oncapture and once.
Solid currently has
<div oncapture:click={bla} />
as well as<MyComponent>{/*@once*/ state.wontUpdate}</MyComponent>
however that can be quite limiting. It would be interesting to explore the idea of stacking the colons<div onClick:capture:once={bla}/>
or maybe if not delegate<div on:click:capture:once={bla} />
.There are a couple concerns regarding parsing this and breaking HTML validity. This would also break TS.
Beta Was this translation helpful? Give feedback.
All reactions