Delay/bug in navController.back ()

I am developing an application with Ionic 5, Angular 11 and Capacitor 3.

In my implementation of the hardware back button I have the following line to go back to the previous path:


The problem occurs when I install @ionic-native/core, causing that statement to have a 2-5 second delay. Sometimes it doesn’t even render the component of the new path.

If I don’t install @ionic-native/core the .back() function works fine.

How can this library influence this? Any ideas to fix it?