Merge pull request #3896 from microsoft/hediet/b/vicarious-sloth

Playground improvements
pull/3900/head
Henning Dieterichs 2 years ago committed by GitHub
commit af0106a971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -140,7 +140,7 @@ export class PlaygroundModel {
}
}
private readonly debouncer = new Debouncer(250);
private readonly debouncer = new Debouncer(700);
@observable
public isDirty = false;

@ -133,10 +133,16 @@ export class PlaygroundPageContent extends React.Component<
checked={
model.settings.autoReload
}
onChange={(e) =>
(model.settings.autoReload =
e.target.checked)
}
onChange={(e) => {
model.settings.autoReload =
e.target.checked;
if (
e.target.checked &&
model.isDirty
) {
model.reload();
}
}}
/>
)}
<Button

Loading…
Cancel
Save