Javascript 反应路由器推送至状态警告
大家好,我需要使用React router dom:5.1.2删除我应用程序上的此警告 我是这样用的Javascript 反应路由器推送至状态警告,javascript,reactjs,routing,react-router,Javascript,Reactjs,Routing,React Router,大家好,我需要使用React router dom:5.1.2删除我应用程序上的此警告 我是这样用的 Warning: Hash history cannot PUSH the same path; a new entry will not be added to the history stack {/*页*/} } path={`${Route.path}`}/> ,勾选此答案可能会有所帮助you@IlCastro是的,看到了,但对我不起作用 <Suspense fallback=
Warning: Hash history cannot PUSH the same path; a new entry will not be added to the history stack
{/*页*/}
}
path={`${Route.path}`}/>
,勾选此答案可能会有所帮助you@IlCastro是的,看到了,但对我不起作用
<Suspense fallback={some component}>
<Switch>
{/* PAGE */}
<Route render={(routeProps: RouteComponentProps<any>) => <Component {...routeProps}/>}
path={`${Route.PATH}`}/> </Switch></Suspense>