You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/06/18 17:09:13 UTC

[GitHub] Antonio-Maranhao opened a new issue #1091: Convert lifecycle events deprecated in React 16.3

Antonio-Maranhao opened a new issue #1091: Convert lifecycle events deprecated in React 16.3
URL: https://github.com/apache/couchdb-fauxton/issues/1091
 
 
   The lifecycle events `componentWillUpdate`, `componentWillMount`, and `componentWillReceiveProps` have been deprecated in React 16.3, and are considered unsafe because they're more likely to lead to bugs, especially when React async rendering is enabled. 
   
   The suggested migration path is to replace these with the two new lifecycles, static `getDerivedStateFromProps` and `getSnapshotBeforeUpdate`. 
   
   ## Expected Behavior
   Replace deprecated lifecycle events in favor of new events as described at https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#migrating-from-legacy-lifecycles .
   
   ## Current Behavior
   Current code was updated in #1090 to use the `UNSAFE_*` aliases. 
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services