Skip to content

Commit

Permalink
fix: minimise debounce time
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Jul 22, 2024
1 parent c2a4395 commit a24c030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/workspace/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function Editor({ defaultValue }: { defaultValue?: string }) {
const editorTheme = currentTheme === "light" ? githubLight : githubDark;

const [value, setValue] = React.useState(defaultValue || "");
const [debouncedValue] = useDebounce(value, 1000);
const [debouncedValue] = useDebounce(value, 100);

const lang = getLang(pathname);

Expand Down

0 comments on commit a24c030

Please sign in to comment.