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

[BottomNavigation][Tabs][Android] Outlet becomes unresponsive/freezes when using nested outlets #442

Open
paul-staskiewicz opened this issue Apr 26, 2023 · 4 comments

Comments

@paul-staskiewicz
Copy link

paul-staskiewicz commented Apr 26, 2023

Which platform(s) does your issue occur on?

  • Android

Please, provide the following version numbers that your issue occurs with:

  • CLI: 8.5.3
  • Cross-platform modules: 8.5.2
  • @nativescript/android: 8.5.0
  • Plugin(s): @nativescript-community/ui-material-bottom-navigation > 7.0.0

Please, tell us how to recreate the issue in as much detail as possible.

When I navigate forward in a tab/parent outlet and then switch to a second tab and reset the outlet in the first tab, the outlet becomes unresponsive and i can not navigate to other routes in this outlet. This issue is only present on Android. Only versions >7.0.0 are affected. This behavior/issue was introduced with release 7.0.1: https://github.com/nativescript-community/ui-material-components/releases/tag/v7.0.1. When downgrading to 7.0.0 it works fine.

Is there any code involved?

I have created an example showcasing the problem: https://github.com/paul-staskiewicz/ns-frozen-outlet. There are two tabs (list/process) with each containing a page-router-outlet. The process tab has three child routes which represent a process, in which you are navigated from step1 -> step2 -> step3 -> list (switch to list tab). When switching back from the list tab to the process tab, it is not possible to go further than step1.

@paul-staskiewicz
Copy link
Author

I have did some digging, and the root cause of this problem is this pull request: #405.

When fixing @nativescript-community/ui-material-core-tabs to version 7.0.27, the issue disappears.

@farfromrefug
Copy link
Member

@edusperoni any chance you could look at this?

@edusperoni
Copy link
Contributor

I'll try to investigate it soon. It's a bit weird because that PR actually fixed some other Frame freezing issues (freezing when switching to currentTabIndex + or - 2)

@pap5508
Copy link

pap5508 commented Jun 22, 2023

I am facing similar issues on iOS as well. after receiving push notifications and navigating nested outlets blocks further navigation to the previous screen.

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

No branches or pull requests

4 participants