Repository navigation
Conversation
cowboyd
force-pushed
the
tree-event-listener
branch
from
August 7, 2026 06:11
60c16bc to
60c7146
Compare
cowboyd
force-pushed
the
tree-event-listener
branch
from
August 7, 2026 06:21
60c7146 to
3e875f6
Compare
commit: |
cowboyd
force-pushed
the
tree-event-listener
branch
from
August 10, 2026 17:30
3e875f6 to
bc70d0f
Compare
cowboyd
force-pushed
the
tree-event-listener
branch
from
August 10, 2026 21:14
bc70d0f to
d53a87f
Compare
cowboyd
force-pushed
the
tree-event-listener
branch
2 times, most recently
from
August 11, 2026 04:27
7dbe4ab to
a643074
Compare
cowboyd
force-pushed
the
tree-event-listener
branch
from
August 22, 2026 05:04
a643074 to
e639f2b
Compare
cowboyd
force-pushed
the
tree-event-listener
branch
from
August 22, 2026 05:24
e639f2b to
60127ff
Compare
cowboyd
force-pushed
the
tree-event-listener
branch
from
August 22, 2026 23:46
60127ff to
51b0c3a
Compare
cowboyd
force-pushed
the
tree-event-listener
branch
from
August 23, 2026 17:28
51b0c3a to
9a699e9
Compare
cowboyd
force-pushed
the
tree-event-listener
branch
from
September 18, 2026 21:15
9a699e9 to
e1dc017
Compare
cowboyd
force-pushed
the
tree-event-listener
branch
from
September 24, 2026 14:00
e1dc017 to
f8a59ba
Compare
Contributor
Author
|
closing out in favor of a DOM based substrate. See #37 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stateful elements need to communicate outward in a way that works equally well for raw Host consumers and JSX frameworks. An input should be able to emit a semantic value change without importing React, Preact, or Solid, while adapters should be able to translate familiar properties such as
onInputinto the same listener mechanism. Host listeners andEmitApiprovide that common outbound event path.Listeners belong to element identity rather than a temporary attached node, so they can be registered before attachment and survive reparenting. The open
HostEventsinterface lets third-party element authors add strongly typed events through declaration merging, while the runtime verifies that an event’s target actually matches the node that emitted it. This is deliberately complementary to dispatch: dispatch carries external events into the tree, whereas emit carries semantic events from an element to its consumers.This PR adds
HostEvent, the extensibleHostEventsregistry,EmitApi, and typed Host listener registration and removal. Listener storage is scoped by element and event type and remains stable across attachment changes. Tests cover ordering, identity, mutation during emission, type inference, target validation, and error propagation.