We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3966f59 commit 93304c6Copy full SHA for 93304c6
packages/app/src/app/pages/Sandbox/Editor/Content/Preview/index.js
@@ -196,7 +196,11 @@ class Preview extends Component<Props, State> {
196
this.props.store.editor.currentSandbox.template
197
).isServer;
198
if ((isServer || !settings.livePreviewEnabled) && change) {
199
- preview.executeCodeImmediately();
+ if (this.props.store.editor.currentSandbox.template === 'static') {
200
+ preview.handleRefresh();
201
+ } else {
202
+ preview.executeCodeImmediately();
203
+ }
204
}
205
};
206
0 commit comments