Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Revert "rename-unsafe-lifecycles"
Browse files Browse the repository at this point in the history
Summary:
This reverts commit 8b3e8c9.

cc bvaughn flarnie
Closes #1705

Differential Revision: D7361922

fbshipit-source-id: c1d1acd884996c4ac1f50c13c0001815dc057088
  • Loading branch information
mitermayer authored and facebook-github-bot committed Mar 22, 2018
1 parent a99f51e commit 6eec8f9
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();
}

UNSAFE_componentWillReceiveProps(nextProps) {
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();
}

UNSAFE_componentWillReceiveProps(nextProps) {
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 @@ -453,7 +453,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.
*/
UNSAFE_componentWillUpdate(nextProps: DraftEditorProps): void {
componentWillUpdate(nextProps: DraftEditorProps): void {
if (!gkx('draft_js_stop_blocking_select_events')) {
this._blockSelectEvents = true;
}
Expand Down

0 comments on commit 6eec8f9

Please sign in to comment.