Paratron / hookrouter

The flexible, and fast router for react that is entirely based on hooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React.StrictMode vs hookrouter

Arthuru4 opened this issue · comments

Hello. Few days ago i created new react app with CRA. There was added "React.StrictMode" by default on creating cra:

ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') );

Just try to add this mode to your app with hookrouter, and you will see that links, created with {A} HOC does not works anymore.
On some reason react thought it rerenders component with useRoutes, but actually i saw last Route, where i was after F5.