diff --git a/.ts/index.js b/.ts/index.js index 5976a1d..1c0350b 100644 --- a/.ts/index.js +++ b/.ts/index.js @@ -573,6 +573,7 @@ var UnControlled = (function (_super) { if (this.props.editorWillUnmount) { this.props.editorWillUnmount(cm); } + this.hydrated = false; }; UnControlled.prototype.shouldComponentUpdate = function (nextProps, nextState) { var update = true; diff --git a/index.js b/index.js index f82b52f..87e72e3 100644 --- a/index.js +++ b/index.js @@ -607,6 +607,7 @@ var UnControlled = function(_super) { if (this.props.editorWillUnmount) { this.props.editorWillUnmount(cm); } + this.hydrated = false; }; UnControlled.prototype.shouldComponentUpdate = function(nextProps, nextState) { var update = true; diff --git a/src/index.tsx b/src/index.tsx index a021139..435c5a4 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -813,6 +813,7 @@ export class UnControlled extends React.Component if (this.props.editorWillUnmount) { this.props.editorWillUnmount(cm); } + this.hydrated = false; } /** @internal */