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 617f006 commit bee02e0Copy full SHA for bee02e0
client/modules/IDE/components/PreviewFrame.jsx
@@ -31,6 +31,12 @@ class PreviewFrame extends React.Component {
31
}
32
33
componentDidUpdate(prevProps) {
34
+ // if sketch starts or stops playing, want to rerender
35
+ if (this.props.isPlaying !== prevProps.isPlaying) {
36
+ this.renderSketch();
37
+ return;
38
+ }
39
+
40
// if the user explicitly clicks on the play button
41
if (this.props.isPlaying && this.props.previewIsRefreshing) {
42
this.renderSketch();
0 commit comments