Skip to content

bug: IonNav in React does not support rootParams #25602

@sean-perkins

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions