You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/04/02 09:06:56 UTC

[GitHub] [incubator-doris-manager] colordove opened a new pull request #31: [refactor] upgrade to react-router v6

colordove opened a new pull request #31:
URL: https://github.com/apache/incubator-doris-manager/pull/31


   # Proposed changes
   
   Upgrade to React Router v6.
   
   ## Problem Summary:
   
   React 18.0 is coming, on March 29, 2022, React Team Announced the official release of [React 18.0](https://reactjs.org/blog/2022/03/29/react-v18.html),  To Keep up with changes in the community, We planned to upgrade our application. there are a series of things to do.
   
   **Upgrade List**
   
   - React Version
   - Antd Design
   - React Router
   - ...Other Deps
   
   This Pull Request is Upgrade React Router.
   
   React Router release its version 6.0.0 on Nov 04, 2021, Now it comes to [6.3.0](https://github.com/remix-run/react-router/releases/tag/v6.3.0), v6 has a lot of breaking changes compared with v4/5, all applications have been affected, SO this commit is very large, And the changes would make bugs.
   
   **Changes**
   
   - All ```<Switch>``` has been replaced by ```<Routes>```
   
   - All ```<Redirect>``` has been replaced by ```<Route path="/" element={<Navigator to={[defaultPath]}>} />```
   
   - All ```useRouteMatch``` has been replaced by ```useMatch```
   
   - All ```useHistory``` has been removed and we use ```useNavigator``` now.
   
   - ```react-route-config``` has been removed from the dependencies, we can use ```useRoutes``` to replace it.
   
   - ....
   
   More Info: [Upgrading from v5](https://reactrouter.com/docs/en/v6/upgrading/v5)
   
   **Others**
   
   - react-hot-loader has been removed from the dependencies and the webpack,
   
   - Eslint works now.
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: (No)
   2. Has unit tests been added: (No)
   3. Has the document been added or modified: (No)
   4. Does it need to update dependencies: (Yes)
   5. Are there any changes that cannot be rolled back: (Yes)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris-manager] hf200012 merged pull request #31: [refactor] upgrade to react-router v6

Posted by GitBox <gi...@apache.org>.
hf200012 merged pull request #31:
URL: https://github.com/apache/incubator-doris-manager/pull/31


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org