Skip to content

Commit d1de36f

Browse files
committed
refactor: prefix lifecycle methods with UNSAFE_
Refs #2710
1 parent 0fd72d5 commit d1de36f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/editor/components/editor.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export default function makeEditor({ editorPluginsToRun }) {
257257
}
258258

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

0 commit comments

Comments
 (0)