Repository navigation
fix: subscribe to RoutedViewHost navigation commands - #184
Merged
Merged
Conversation
Documentation: - update the routing example to execute the cold navigation observable - explain that ReactiveCommand.Execute must be subscribed to or awaited Tests and samples: - execute navigation in RoutedViewHost coverage tests - update the shared routed-view-host fixture without adding a System.Reactive dependency - preserve navigation failures by rethrowing observer errors
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main reactiveui/ReactiveUI#184 +/- ##
=======================================
Coverage 87.89% 87.89%
=======================================
Files 18 18
Lines 636 636
Branches 105 105
=======================================
Hits 559 559
Misses 76 76
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ChrisPulman
marked this pull request as ready for review
August 27, 2026 21:57
glennawatson
approved these changes
Aug 28, 2026
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
What kind of change does this PR introduce?
Bug fix and documentation/test correction for #185
Closes #185
What is the new behavior?
The routing example, routed-host demo fixture, and related tests subscribe to the observable returned by Router.Navigate.Execute(...). The README now explains that ReactiveCommand.Execute is cold and must be subscribed to or awaited.
What is the current behavior?
The previous example and test/demo call sites discarded the observable returned by Execute, so navigation was never performed and RoutedViewHost remained on its default content.
Checklist
Additional information
Addresses #185.
No ReactiveUI.Avalonia production-code change is required because the reported behavior is caused by an unexecuted cold navigation observable.
Validation: