React Router推送到状态警告

时间:2020-02-06 14:16:51

标签: javascript reactjs routing react-router

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>

0 个答案:

没有答案