-
Notifications
You must be signed in to change notification settings - Fork 6
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 node to v16, and update dependencies #1
Conversation
…he project, because the old version of axios has security vulnerabilities.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. @sschiessl-bcp please take a look. Permissions granted.
By the way, if need permissions for other repositories (I have added some already), please let me know. |
@@ -38,7 +41,7 @@ class ComponentA extends React.Component { | |||
this.state = props.alt.stores.store.getState() | |||
} | |||
|
|||
componentWillMount() { | |||
componentDidMount() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are changing here the hook in the React lifecycle. While this is likely ok, we need to be aware that if we encounter strange re-rendering of components this might be a cause of it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this change is wrong..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming the intention of componentWillMount
has not been abused, componentDidMount
is the replacement recommendation
https://reactjs.org/docs/react-component.html#unsafe_componentwillmount
The alternative would be to use UNSAFE_componentWillMount
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed this is used in test/batching-test.js
, so definitely not a blocker for the PR. But, important to keep in mind when we are updating the UI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. Thanks for the info.
@xiangxn the UI runs ok and as expected with this I assume? |
The impact in componentWillMount will not be too great. The modification here mainly depends on whether the test can be completed after the update. |
In addition, I will put the lib directory together for ease of reference. |
upgrade node to v16, and update dependencies