Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Uri navigation #23

Merged
merged 21 commits into from
Oct 12, 2023
Merged

Initial Uri navigation #23

merged 21 commits into from
Oct 12, 2023

Conversation

BurkusCat
Copy link
Owner

@BurkusCat BurkusCat commented Oct 12, 2023

This PR introduces a rough first attempt at URI navigation. There are inconsistencies on when events trigger and what parameters get passed at each stage, but the end results of the navigation are mostly what I'd expect.

The visual results on screen may be a bit janky and could probably be improved but I'd expect that would make the code more complicated in this library.

Related to #1, fixes #22

This version looks better since the navigation happens in one go. OnNavigatedTo is only called on the one page you are going to and OnNavigatedFrom only happens on the page you are leaving (rather than every page in between). It probably is possible to make these events happen on the in-between pages if that would be the best behaviour.
This new design still won't call OnNavigatedFrom/To etc. events for more than two pages.

The new method handles absolute and go back a lot cleaner. The end visual result doesn't look as nice though.
@BurkusCat BurkusCat linked an issue Oct 12, 2023 that may be closed by this pull request
@BurkusCat BurkusCat linked an issue Oct 12, 2023 that may be closed by this pull request
@BurkusCat BurkusCat merged commit 2b97e35 into main Oct 12, 2023
2 checks passed
@BurkusCat BurkusCat deleted the uri-navigation branch October 12, 2023 21:07
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.

[Feature] BurkusMvvmException [Feature] URL-based navigation
1 participant