Skip to content

Commit ce3f915

Browse files
committed
Reduce debouncing, this is not js code, so should be faster
1 parent 90f8908 commit ce3f915

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

editor/src/components/sections/PanelCode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const LocalEditor: React.FC<{
4444
const onCodeOutputsUpdate = useCallback(
4545
debounce((outputs: MetaframeInputMap) => {
4646
setCode(outputs.text);
47-
}, 500),
47+
}, 100),
4848
[setCode],
4949
);
5050

worker/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@
547547
pending = setTimeout(() => {
548548
pending = null;
549549
window.location.hash = hash;
550-
}, 400);
550+
}, 200);
551551
};
552552
mp.addListener(globalThis.metapage.Metapage.DEFINITION, (event) => {
553553
const url = event

0 commit comments

Comments
 (0)