Skip to content

Commit

Permalink
rename-unsafe-lifecycles
Browse files Browse the repository at this point in the history
Summary:
Ran the [rename-unsafe-lifecycles](https://github.com/reactjs/react-codemod/blob/master/transforms/rename-unsafe-lifecycles.js) codemod. For background information on this codemod see [RFC #6](https://github.com/reactjs/rfcs/blob/master/text/0006-static-lifecycle-methods.md) and this [draft ReactJS.org blog post](https://deploy-preview-596--reactjs.netlify.com/blog/2018/03/15/update-on-async-rendering.html).

bypass-lint
drop-conflicts
allow_many_files

Reviewed By: flarnie

Differential Revision: D7220433

fbshipit-source-id: b0d7572865c002a2be9347dfe1ef7de15d76e800
  • Loading branch information
Brian Vaughn authored and facebook-github-bot committed Mar 12, 2018
1 parent 732b69d commit 8b3e8c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/draft-0-10-0/tex/js/components/TeXBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class KatexOutput extends React.Component {
this._update();
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (nextProps.content !== this.props.content) {
this._update();
}
Expand Down
2 changes: 1 addition & 1 deletion examples/draft-0-9-1/tex/js/components/TeXBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class KatexOutput extends React.Component {
this._update();
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (nextProps.content !== this.props.content) {
this._update();
}
Expand Down
2 changes: 1 addition & 1 deletion src/component/base/DraftEditor.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ class DraftEditor extends React.Component<DraftEditorProps, State> {
* programmatically. We only care about selection events that occur because
* of browser interaction, not re-renders and forced selections.
*/
componentWillUpdate(nextProps: DraftEditorProps): void {
UNSAFE_componentWillUpdate(nextProps: DraftEditorProps): void {
if (!gkx('draft_js_stop_blocking_select_events')) {
this._blockSelectEvents = true;
}
Expand Down

0 comments on commit 8b3e8c9

Please sign in to comment.