Skip to content

docs: use UI.routerStateSignal for breadcrumbs initial trail build#11921

Merged
web-padawan merged 1 commit into
mainfrom
docs/cleanup-breadcrumbs-flow-spec
Jun 12, 2026
Merged

docs: use UI.routerStateSignal for breadcrumbs initial trail build#11921
web-padawan merged 1 commit into
mainfrom
docs/cleanup-breadcrumbs-flow-spec

Conversation

@web-padawan

@web-padawan web-padawan commented Jun 11, 2026

Copy link
Copy Markdown
Member

Aligns the breadcrumbs Flow spec and tasks with Flow core PR #24234, which ships UI.routerStateSignal() — a read-only Signal<RouterState> holding the current Location, RouteParameters, active chain, and navigation target class, updated atomically alongside AfterNavigationEvent dispatch.

  • Initial trail buildonAttach reads the current navigation state with ui.routerStateSignal().peek() instead of UIInternals, and the second rebuildFromRouter overload takes a RouterState. The AfterNavigationListener keeps covering subsequent navigations.
  • Proposed-API section trimmed — the "Signal<NavigationState> — Proposed" Reuse section is replaced by a short "UI.routerStateSignal() — Used as-is" entry that keeps only what the breadcrumb consumes.
  • Tasks — Task 7's initial-attach wording updated to the signal read.

Discussion entry added for the initial-read mechanism; spec bodies kept current-state-only.


🤖 Generated with Claude Code

@web-padawan web-padawan requested a review from sissbruecker June 11, 2026 09:28
@web-padawan web-padawan force-pushed the docs/breadcrumbs-flow-route-hierarchy branch from 4e0b941 to 403bca2 Compare June 11, 2026 10:11
@web-padawan web-padawan force-pushed the docs/cleanup-breadcrumbs-flow-spec branch from b026e93 to 7a1320b Compare June 11, 2026 10:15
@web-padawan web-padawan changed the base branch from docs/breadcrumbs-flow-route-hierarchy to main June 11, 2026 10:16
@web-padawan web-padawan marked this pull request as ready for review June 11, 2026 10:16
@web-padawan web-padawan requested a review from vursen June 11, 2026 10:27
@web-padawan web-padawan force-pushed the docs/cleanup-breadcrumbs-flow-spec branch 2 times, most recently from 83a8dcf to 38f7d20 Compare June 11, 2026 11:21
Flow core exposes the current navigation state as a read-only
Signal<RouterState> on UI, so the initial trail build reads it with
Signal#peek() and the proposed Signal<NavigationState> section shrinks
to a short used-as-is dependency entry.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@web-padawan web-padawan force-pushed the docs/cleanup-breadcrumbs-flow-spec branch from 38f7d20 to ebbb5a0 Compare June 11, 2026 12:06
@sonarqubecloud

Copy link
Copy Markdown

@web-padawan web-padawan removed the request for review from sissbruecker June 12, 2026 08:27
@web-padawan web-padawan merged commit e1cb6e9 into main Jun 12, 2026
10 checks passed
@web-padawan web-padawan deleted the docs/cleanup-breadcrumbs-flow-spec branch June 12, 2026 08:28
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.

2 participants