-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Labels
package: react@ionic/react package@ionic/react packagetype: buga confirmed bug reporta confirmed bug report
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
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
- Clone the reproduction: https://github.com/milang/ionic-simplevitejs
- Checkout
simple-ionnavbranch - Install dependencies
- Run the app in dev mode
npm run dev - Observe that the value supplied as
rootParamsis not detected in theHelloWorldcomponent
Code Reproduction URL
https://github.com/milang/ionic-simplevitejs
Ionic Info
N/A
Additional Information
No response
Metadata
Metadata
Assignees
Labels
package: react@ionic/react package@ionic/react packagetype: buga confirmed bug reporta confirmed bug report