Skip to content

Commit d141dea

Browse files
committed
Checkpoint
1 parent 9445f0f commit d141dea

File tree

7 files changed

+144
-136
lines changed

7 files changed

+144
-136
lines changed

src/playground-ui/debouncer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ export function useDebouncedChecker<T>(
6363
})();
6464
};
6565

66+
// TODO: this is creating a new `run` on every render. Refactor so that the reference is stable,
67+
// or else use an off-the-shelf debounce.
6668
return {
6769
run: (arg: T) => {
6870
// To prevent it blocking the main thread.

0 commit comments

Comments
 (0)