Skip to content

feat: Return pop result from NavController #27403

Closed

Description

@andrzejpindor

Prerequisites

Describe the Feature Request

NavController pop method does not return status (boolean) not allowing to ensure that pop was successful.

Describe the Use Case

Custom navigation when using NavController, allowing user to go "back" using pop, but failover to default route when navigation stack is empty

Describe Preferred Solution

No response

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

Activity

  1. added
    type: feature request
    package: angular
    on May 5, 2023
  2. sean-perkins commented on May 5, 2023

    @sean-perkins
    Contributor

    Hello @andrzejpindor thanks for this feature request/bug report. There is an inconsistency between the return type of the pop() function on ion-nav and the pop() function from the NavController.

    In both cases the return type should be: Promise<boolean>.

  3. andrzejpindor commented on May 6, 2023

    @andrzejpindor
    ContributorAuthor

    Hi @sean-perkins I prepared a merge request to change the behavior for NavController #27404

  4. added a commit that references this issue on May 18, 2023
    e80f0b2
  5. liamdebeasi commented on Jun 15, 2023

    @liamdebeasi
    Contributor

    This was added via #27404. The feature will be available in the next minor release of Ionic. Thank you again for the contribution!

  6. ionitron-bot commented on Jul 15, 2023

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  7. locked and limited conversation to collaborators on Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: angulartype: feature request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions