Ionic react with hash routing

Hi,
I was using IonReactRouter but since last couple of days its not working anymore, not sure if anything changed
how can I use hash with react router on ionic 5
I dont see any documentation on how to use hash on IonReactRouter

<IonReactHashRouter history={history} >
    <IonRouterOutlet >
      <Route path="/" component={Landing} exact />
    </IonRouterOutlet>
  </IonReactHashRouter>

You simply import that router from @ionic/react-router

import { IonReactHashRouter } from '@ionic/react-router';

    <IonApp>
      <IonReactHashRouter>
          <IonRouterOutlet>
             { /* Your routes */}
          </IonRouterOutlet>
      </IonReactHashRouter>
    </IonApp>

that is correct that code was working till last week, it stooped working this week don’t know how and why

Thanx looks like history was causing issue, once I removed history prop its working.

1 Like