bug: [ionic-react] Route change trigger url change, but doesn’t render

Bug Report

Ionic version:

[x] @ionic/react: “^5.0.4”,
[x] @ionic/react-router: “^5.0.4”

Current behavior:
Despite changing the URL, the view doesn’t rerender.
Another error is that I never go to useIonViewDidEnter. I have this in the Home page :

  useIonViewDidEnter(() => {

But the log never show up.

Here is a short video of the bug.

Mar-06-2020 09-46-12

Expected behavior:
I wish it would change page without any problem.

Steps to reproduce:
You can :

git clone https://github.com/florianchevallier/ionic-react-test
cd ionic-react-test
npm i
ionic serve

Click on the “Pokedex” Button on the home page

Related code:

The router : https://github.com/florianchevallier/ionic-react-test/blob/master/src/App.tsx
The Home Page : https://github.com/florianchevallier/ionic-react-test/blob/master/src/pages/Home/Home.tsx

Ionic info:


   Ionic CLI       : 6.2.0 (/Users/florianchevallier/.nvm/versions/node/v12.13.1/lib/node_modules/@ionic/cli)
   Ionic Framework : @ionic/react 5.0.4


   Capacitor CLI   : 1.5.0
   @capacitor/core : 1.5.0


   cordova-res : not installed
   native-run  : not installed


   NodeJS : v12.13.1 (/Users/florianchevallier/.nvm/versions/node/v12.13.1/bin/node)
   npm    : 6.12.1
   OS     : macOS Catalina

1 possible answer(s) on “bug: [ionic-react] Route change trigger url change, but doesn’t render