Skip to content

Commit 0283c7c

Browse files
kumarabhisheksapegin
authored andcommitted
Fix: Preview not updating when initialState is edited in code-editor (styleguidist#546)
Close styleguidist#545
1 parent 10383bc commit 0283c7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rsg-components/Preview/Preview.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export default class Preview extends Component {
9595
);
9696

9797
window.requestAnimationFrame(() => {
98+
this.unmountPreview();
9899
try {
99100
ReactDOM.render(wrappedComponent, this.mountNode);
100101
} catch (err) {

0 commit comments

Comments
 (0)