Skip to content

Ask each node once when a sink's event falls back to the whole tree (0.10.3) - #12

Merged
rinekri merged 1 commit into
masterfrom
fix/sink-fallback-single-consult
Oct 6, 2026
Merged

rinekri merged 1 commit into
masterfrom
fix/sink-fallback-single-consult

Conversation

@rinekri

@rinekri rinekri commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

An event sent through a node's eventSink which nobody handled in the sink's scope was resolved again from the whole tree, so the scope's nodes got it twice: transition() and the onPreTransition hooks ran again. A node doing its work in transition() and answering Ignore did that work twice.

The scoped resolution and the fallback now share the set of paths already asked; a node in it is skipped and counts as Ignore. The whole-tree fallback itself is kept, so sibling regions still get an event nobody in scope handled.

Bumps the version to 0.10.3.

…0.10.3)

An event sent through a node's eventSink which nobody handled in the sink's scope was resolved again from the whole tree, so the scope's nodes got it twice: transition() and the onPreTransition hooks ran again. A node doing its work in transition() and answering Ignore did that work twice.

The scoped resolution and the fallback now share the set of paths already asked; a node in it is skipped and counts as Ignore.
@rinekri
rinekri merged commit fb76464 into master Oct 6, 2026
@rinekri
rinekri deleted the fix/sink-fallback-single-consult branch November 9, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant