Skip to content

Routing broken with mixed modal (with inner navigation) and standard routing usages #1484

Closed

Description

@NathanWalker

Make sure to check the existing issues in this repository

If there is no issue for your problem, tell us about it

Routing broken and unreliable after this PR was merged.

Which platform(s) does your issue occur on?

all.

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

  • CLI: 4.2.0
  • Cross-platform modules: 4.2.0
  • Runtime(s): 4.2.0

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

Just use an app with routing and modals. Any calls to navigate will eventually become unresponsive/dead and stop navigating.

Is there any code involved?

We'll submit a PR to fix.

Activity

  1. NathanWalker commented on Aug 13, 2018

    @NathanWalker
    ContributorAuthor

    For anyone who's routing is terribly broken, pin your project to this for now until this is fixed:
    "nativescript-angular": "6.1.0-2018-07-03-01",

  2. changed the title [-]Routing broken badly[/-] [+]Routing broken with mixed modal (with inner navigation) and standard routing usages[/+] on Aug 15, 2018
  3. NathanWalker commented on Aug 15, 2018

    @NathanWalker
    ContributorAuthor

    To clarify this issue is likely related to inner page modal navigation mixed with standard routing usage so if you're app is using both you will likely run into this hence the pinned workaround above. Working on solution here in addition to the pending PR.

  4. NathanWalker commented on Aug 17, 2018

    @NathanWalker
    ContributorAuthor

    Here is a repro in playground:
    https://play.nativescript.org/?template=play-ng&id=6QPnkI&v=3
    • 'navigate to second page'
    • tap 'back' button
    • now tap 'show modal with frame'
    • now tap 'close modal'
    • now 'navigate to second page' again
    • now tap 'back' button
    • routing now dead 💀

    /cc @ADjenkov @vakrilov

  5. ADjenkov commented on Aug 20, 2018

    @ADjenkov
    Contributor

    Hey @NathanWalker thanks for the Playground project! Just rename the export name of the home.module.ts -> export class HomeModule { } in order to be runnable project

  6. NathanWalker commented on Aug 20, 2018

    @NathanWalker
    ContributorAuthor

    Ah @ADjenkov linked older version param above there - this was the latest:
    https://play.nativescript.org/?template=play-ng&id=6QPnkI&v=11

    Thanks for the fix - makes total sense now why it was failing - After that's merged we'll try it with next on our projects. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions