We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8054326 commit 0682c04Copy full SHA for 0682c04
packages/app/src/app/components/Preview/index.js
@@ -58,6 +58,8 @@ class BasePreview extends React.Component<Props, State> {
58
// when the user navigates the iframe app, which shows the loading screen
59
this.initialPath = props.initialPath;
60
61
+ this.listener = listen(this.handleMessage);
62
+
63
if (props.delay) {
64
this.executeCode = debounce(this.executeCode, 800);
65
}
@@ -81,10 +83,6 @@ class BasePreview extends React.Component<Props, State> {
81
83
82
84
85
- componentDidMount() {
- this.listener = listen(this.handleMessage);
86
- }
87
-
88
openNewWindow = () => {
89
if (this.props.onOpenNewWindow) {
90
this.props.onOpenNewWindow();
0 commit comments