Prerequisites
Ionic Framework Version
v8.x
Current Behavior
In ionic 8.2.6, I could get the ref (React) like the following:
const ref = useRef();
requestAnimationFrame(() => {
console.log(ref.current);
});
return <IonRouterOutlet ref={ref} />
Which prints:
In Ionic 8.3.2, this prints:
Expected Behavior
8.2.6 behavior
Steps to Reproduce
- Clone https://github.com/aeharding/bugged-outlet
- Checkout branch
8.2.6. Install, ionic serve
- Observe expected output in console
- Checkout branch
8.3.2. Install, ionic serve
- Observe bugged output (all
undefined)
Code Reproduction URL
https://github.com/aeharding/bugged-outlet
Ionic Info
Ionic:
Ionic CLI : 7.2.0 (/Users/aeharding/.nvm/versions/node/v22.1.0/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 8.3.2
Capacitor:
Capacitor CLI : 6.1.2
@capacitor/android : not installed
@capacitor/core : 6.1.2
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
native-run : not installed globally
System:
NodeJS : v22.1.0 (/Users/aeharding/.nvm/versions/node/v22.1.0/bin/node)
npm : 10.7.0
OS : macOS Unknown
Additional Information
No response
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
In ionic 8.2.6, I could get the ref (React) like the following:
Which prints:
In Ionic 8.3.2, this prints:
Expected Behavior
8.2.6 behavior
Steps to Reproduce
8.2.6. Install,ionic serve8.3.2. Install,ionic serveundefined)Code Reproduction URL
https://github.com/aeharding/bugged-outlet
Ionic Info
Additional Information
No response