mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
feat: reduce preview debounce timer (#55561)
This commit is contained in:
@@ -255,7 +255,9 @@ export function* previewChallengeSaga(action) {
|
||||
yield put(initLogs());
|
||||
yield put(initConsole(''));
|
||||
}
|
||||
yield delay(700);
|
||||
// long enough so that holding down a key will only send one request, but not
|
||||
// so long that it feels unresponsive
|
||||
yield delay(30);
|
||||
|
||||
const logProxy = yield channel();
|
||||
const proxyLogger = args => logProxy.put(args);
|
||||
|
||||
Reference in New Issue
Block a user