0
Warning: Hash history cannot PUSH the same path; a new entry will not be added to the history stack

Hi guys I need to remove this warning on my app using React-router-dom: 5.1.2

I use it in this way

<Suspense fallback={some component}>
    <Switch>
    {/* PAGE */}
    <Route render={(routeProps: RouteComponentProps<any>) => <Component {...routeProps}/>}
           path={`${Route.PATH}`}/> </Switch></Suspense>
Giovanni Giampaolo
  • 465
  • 1
  • 9
  • 17

0 Answers0