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

fix: deep link urls are not triggering navigation events #733

Conversation

hgray-instawork
Copy link
Collaborator

@hgray-instawork hgray-instawork commented Oct 27, 2023

Deep link requests were not properly triggering navigation events like tab selections. Behaviors continued to work as expected.

Cause:
There was a chunk of code which was calling useContext in the hv-navigator for two contexts. The result of these were not being used so the code was removed. Without that context, the useEffect of the custom navigators doesn't fire.

Adding it back as part of the hierarchy restores the functionality.

In the videos below, the deep link should cause a selection of the "Accounts" tab.

Before After
before after

@hgray-instawork hgray-instawork marked this pull request as ready for review October 27, 2023 18:28
@hgray-instawork hgray-instawork changed the title Adding back the <NavigationContext> fix: deep link urls are not triggering navigation events Oct 27, 2023
@hgray-instawork hgray-instawork merged commit f5110f4 into hardin/navigation-integration Nov 1, 2023
1 check passed
@hgray-instawork hgray-instawork deleted the hardin/navigation-deep-link-url-fix branch November 1, 2023 02:55
hgray-instawork added a commit that referenced this pull request Nov 1, 2023
…nks (#701)

Updates and fixes to Hyperview navigation including
- Support for deep link navigation:
- Passing the deep link url as the `entrypointurl` will merge/replace
the existing state with the incoming
- <navigation> elements in the XML support <behaviors> with a trigger of
"load"
- Integration with the TypeScript migrated Hyperview release 

Includes
- #612
- #615 
- #618 
- #622
- #623 
- #624 
- #625 
- #626
- #632 
- #637 
- #640 
- #641 
- #642 
- #643 
- #651 
- #656 
- #657 
- #686 
- #690 
- #691 
- #698 
- #722 
- #726 
- #727 
- #728 
- #729 
- #730 
- #733


Asana: https://app.asana.com/0/1204008699308084/1205634462686890/f

---------

Co-authored-by: Florent Bonomo <flochtililoch+github@gmail.com>
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