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

Revert "rename-unsafe-lifecycles" #1705

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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.
*/
UNSAFE_componentWillUpdate(nextProps: DraftEditorProps): void {
componentWillUpdate(nextProps: DraftEditorProps): void {
if (!gkx('draft_js_stop_blocking_select_events')) {
this._blockSelectEvents = true;
}
Expand Down