Scope messenger hierarchy across Core, Arc.React, and Arc.React.MVVM#2232
Merged
Conversation
Closed
Agent-Logs-Url: https://github.com/Cratis/Arc/sessions/04ff52a7-0d6c-4320-84ea-ab8d0c7e1364 Co-authored-by: einari <134365+einari@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement scoped messaging hierarchy for React messenger
Scope messenger hierarchy across Core, Arc.React, and Arc.React.MVVM
May 21, 2026
|
NuGet packages for this PR, e.g. Cratis.Arc: |
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.
Summary
Implements hierarchical messenger scoping so child publishes stay local by default, while parent messages trickle recursively through descendants. Moves messenger behavior into Arc core and wires React/MVVM to resolve the nearest scoped messenger with Arc root fallback.
Added
@cratis/arc/messaging(IMessenger,Message,Messenger) with parent/child hierarchy and per-scope propagation controls:bubbleToParentandtrickleDownToChildren(Scoping Messenger #2231)MessengerScope,MessengerScopeContext, anduseMessenger()for nearest-scope resolution (Scoping Messenger #2231)Changed
<Arc />(Scoping Messenger #2231)withViewModel()now injects the nearest messenger into MVVM child containers, falling back to Arc root when no local scope exists (Scoping Messenger #2231)@cratis/arc/messagingand@cratis/arc.react/messaging(Scoping Messenger #2231)Fixed
Removed
Security
Deprecated
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
example.com/opt/hostedtoolcache/node/24.15.0/x64/bin/node /opt/hostedtoolcache/node/24.15.0/x64/bin/node /home/REDACTED/work/Arc/Arc/node_modules/vitest/vitest.mjs run(dns block)If you need me to access, download, or install something from one of these locations, you can either: