You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can see, everything is correct! But my callback will be called twice!
Can someone help? Thanks a lot ❤️
Expected Behavior
The callback should be called only once, because we subscribed to subscribeWithPriority only once... And we also unsubscribe from it, whenever the component is destroyed.
Steps to Reproduce
Simply click the Android native back button.
Then you will see that 'back button called' console log message shows twice.
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
app.component.html
:my page (component) TS file:
As far as I can see, everything is correct! But my callback will be called twice!
Can someone help? Thanks a lot ❤️
Expected Behavior
The callback should be called only once, because we subscribed to
subscribeWithPriority
only once... And we also unsubscribe from it, whenever the component is destroyed.Steps to Reproduce
Code Reproduction URL
https://stackblitz.com/edit/wusmwpve?file=src%2Fapp%2Fexample.component.ts
Ionic Info
Ionic:
Ionic CLI : 7.2.0
Utility:
cordova-res : not installed globally
native-run : not installed globally
System:
NodeJS : v20.11.0
npm : 10.2.4
OS : Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: