Warning: Hash history cannot PUSH the same path; a new entry will not be added to the history stack
嗨,我需要使用React-router-dom:5.1.2删除我的应用程序上的此警告
我以这种方式使用
<Suspense fallback={some component}>
<Switch>
{/* PAGE */}
<Route render={(routeProps: RouteComponentProps<any>) => <Component {...routeProps}/>}
path={`${Route.PATH}`}/> </Switch></Suspense>