Skip to content

Commit d0b3c2c

Browse files
authored
Merge pull request #325 from fras2560/master
fix(issue-324): Re-Hydrate upon remounting after unmounting
2 parents 673a668 + 7517db8 commit d0b3c2c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

.ts/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,7 @@ export class UnControlled extends React.Component<IUnControlledCodeMirror, any>
813813
if (this.props.editorWillUnmount) {
814814
this.props.editorWillUnmount(cm);
815815
}
816+
this.hydrated = false;
816817
}
817818

818819
/** @internal */

0 commit comments

Comments
 (0)