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
The current workaround for getting hold of the host element, when compiling as a custom element, is convoluted and weird.
Describe the proposed solution
It would be useful to have a $host() rune, which would be a compile error without the relevant option.
With this, we could treat createEventDispatcher as deprecated — IIRC the only real reason it isn't already is that we need it to dispatch events from custom elements.
Importance
nice to have
The text was updated successfully, but these errors were encountered:
Describe the problem
Previously: #3091
The current workaround for getting hold of the host element, when compiling as a custom element, is convoluted and weird.
Describe the proposed solution
It would be useful to have a
$host()
rune, which would be a compile error without the relevant option.With this, we could treat
createEventDispatcher
as deprecated — IIRC the only real reason it isn't already is that we need it to dispatch events from custom elements.Importance
nice to have
The text was updated successfully, but these errors were encountered: