Skip to content

Commit

Permalink
refactor: prefix lifecycle methods with UNSAFE_
Browse files Browse the repository at this point in the history
Refs #2710
  • Loading branch information
char0n committed Nov 3, 2021
1 parent 0fd72d5 commit d1de36f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/editor/components/editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export default function makeEditor({ editorPluginsToRun }) {
}

// eslint-disable-next-line react/no-deprecated
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
let hasChanged = (k) => !isEqual(nextProps[k], this.props[k])
const editor = this.editor

Expand Down

0 comments on commit d1de36f

Please sign in to comment.