We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88e3964 commit 42a6681Copy full SHA for 42a6681
src/app/components/sandbox/Preview/index.js
@@ -110,7 +110,12 @@ export default class Preview extends React.PureComponent {
110
this.state.frameInitialized
111
) {
112
if (this.props.preferences.livePreviewEnabled) {
113
- this.executeCode();
+ if (
114
+ this.props.bundle === prevProps.bundle || // So we don't trigger after every dep change
115
+ this.props.sandboxId !== prevProps.sandboxId
116
+ ) {
117
+ this.executeCode();
118
+ }
119
}
120
121
0 commit comments