diff --git a/.ts/index.js b/.ts/index.js index 1c0350b..b075495 100644 --- a/.ts/index.js +++ b/.ts/index.js @@ -435,6 +435,7 @@ var Controlled = (function (_super) { if (this.props.editorWillUnmount) { this.props.editorWillUnmount(cm); } + this.hydrated = false; }; Controlled.prototype.shouldComponentUpdate = function (nextProps, nextState) { return !SERVER_RENDERED; diff --git a/index.js b/index.js index 4641dfe..8016a6e 100644 --- a/index.js +++ b/index.js @@ -454,6 +454,7 @@ var Controlled = function(_super) { if (this.props.editorWillUnmount) { this.props.editorWillUnmount(cm); } + this.hydrated = false; }; Controlled.prototype.shouldComponentUpdate = function(nextProps, nextState) { return !SERVER_RENDERED; diff --git a/src/index.tsx b/src/index.tsx index 435c5a4..c1eb49f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -611,6 +611,7 @@ export class Controlled extends React.Component { if (this.props.editorWillUnmount) { this.props.editorWillUnmount(cm); } + this.hydrated = false; } /** @internal */