-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade some packages in the front-end #325
Conversation
4675300
to
8b19f5b
Compare
My fork of react-d3-graph: https://github.com/nafiz1001/react-d3-graph |
ce47222
to
374bd06
Compare
ab9dce6
to
f984aa6
Compare
As reported in Slack, there is a routing issue wit the user details page. Whenever we route to the page the page immediately routes back to wherever we routed from. For example, in the Users table, clicking on a user will route to the user details but then immediately route back to the Users table. |
I pushed a fix for the "expected static flag was missing" react error in a ContainerDetails component, based on this issue: facebook/react#24391 |
* use absolute path * `/processes/` redirects to `/process-measurements/list`
- use freezeman-d3-graph - upgrade react to 18 - remove hot reload and use fast refresh instead
30aaa3a
to
46de302
Compare
Migrations
react-redux
https://github.com/reduxjs/react-redux/releases/tag/v8.0.0
react-router-dom
remix-run/react-router#8753
[ ] Update nav links (optional)<Switch>
to<Routes>
webpack-cli
npm start
is missing--mode=development
webpack-dev-server
https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md
[ ] webpack-dev-server v3 and webpack-dev-server v4 automatically inject webpack/hot/dev-server in your entry option when you set hot: true (except when you use injectHot for webpack-dev-server v3), please check you don't have webpack/hot/dev-server in your entry option[ ] webpack-dev-server v3 and webpack-dev-server v4 automatically inject webpack-dev-server/client/index.js in your entry option (except when you use injectClient for webpack-dev-server v3), please check you don't have webpack-dev-server/client/index.js in your entry optionReact/ReactDOM
16 -> 17
https://reactjs.org/blog/2020/10/20/react-v17.html
[ ] Changes to Event Delegation (hopefully this is not a problem, chris might be more qualified to judge this)[ ] The onScroll event no longer bubbles to prevent common confusion.[ ] React onFocus and onBlur events have switched to using the native focusin and focusout events under the hood, which more closely match React’s existing behavior and sometimes provide extra information[ ] Capture phase events (e.g. onClickCapture) now use real browser capture phase listeners[ ] timing of the useEffect cleanup function more consistent (hopefully useEffect is being used properly 😒)17 -> 18
https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html
ReactDOM.render
is no longer supported in React 18. UsecreateRoot
instead.unmountComponentAtNode
toroot.unmount
Cypress