Skip to content

Commit

Permalink
use UNSAFE for method names
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed Aug 10, 2019
1 parent a633e7d commit 6c6d45d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .ts/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/app.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ export class Controlled extends React.Component<IControlledCodeMirror, any> {
}

/** @internal */
public componentWillReceiveProps(nextProps) {
public UNSAFE_componentWillReceiveProps(nextProps) {

if (SERVER_RENDERED) return;

Expand Down Expand Up @@ -736,7 +736,7 @@ export class UnControlled extends React.Component<IUnControlledCodeMirror, any>
}

/** @internal */
public componentWillReceiveProps(nextProps) {
public UNSAFE_componentWillReceiveProps(nextProps) {

if (this.detached && (nextProps.detach === false)) {
this.detached = false;
Expand Down

0 comments on commit 6c6d45d

Please sign in to comment.