Skip to content

bug: IonNav in React does not support rootParams #25602

Closed

Description

@sean-perkins

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

Using IonNav in React does not persist the value of rootParams to the components. Any value supplied to rootParams will be ignored and the parameters of the component will be undefined.

Expected Behavior

The value of rootParams should be applied to the root component.

Steps to Reproduce

  1. Clone the reproduction: https://github.com/milang/ionic-simplevitejs
  2. Checkout simple-ionnav branch
  3. Install dependencies
  4. Run the app in dev mode npm run dev
  5. Observe that the value supplied as rootParams is not detected in the HelloWorld component

Code Reproduction URL

https://github.com/milang/ionic-simplevitejs

Ionic Info

N/A

Additional Information

No response

Activity

  1. added
    package: react
    type: bug
    on Jul 11, 2022
  2. sean-perkins commented on Jul 11, 2022

    @sean-perkins
    ContributorAuthor

    Here is a dev-build if anyone would like to verify: 6.1.14-dev.11657507365.17b3751f. Thanks!

  3. added a commit that references this issue on Jul 28, 2022
    61e4ffe
  4. ionitron-bot commented on Aug 27, 2022

    @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.

  5. locked and limited conversation to collaborators on Aug 27, 2022
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: reacttype: bug

    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