Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Global Navigation Observer #37

Merged
merged 11 commits into from
May 24, 2022
Merged

Global Navigation Observer #37

merged 11 commits into from
May 24, 2022

Conversation

dansiegel
Copy link
Member

Description

Globally handling Navigation Requests has always been a challenge because the NavigationService can not operate as a Singleton and instead has to work as service Scoped to the Page. This PR introduces a NavigationRequestContext and PubSubEvent that is fired by the NavigationService any time a Navigation Method is executed. Prism.Maui manages to do this using the IEventAggregator, however a new Prism.Maui.Rx package has been added to expose some helpers that encapsulates this as an IObservable.

  • Also fixes bug with the GoBack on a NavigationPage back button.

@dansiegel dansiegel added the enhancement New feature or request label May 24, 2022
@dansiegel dansiegel merged commit 281fdb8 into master May 24, 2022
@dansiegel dansiegel deleted the observable-navigation branch May 24, 2022 17:13
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant