Skip to content

Commit cb1bc5c

Browse files
authored
Revert "chore: avoid react linting errors" (#84)
1 parent c9ada6a commit cb1bc5c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/components/editor.tsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,9 @@ export const Editor: FC<EditorProperties> = ({ readOnly, value, onChange }) => {
5353
];
5454

5555
const debouncedOnChange = useCallback(
56-
(value: string) => {
57-
debounce(() => {
58-
onChange?.(value);
59-
}, 400)();
60-
},
56+
debounce((value: string) => {
57+
onChange?.(value);
58+
}, 400),
6159
[onChange],
6260
);
6361

src/components/path/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ export const CodePath: FC = () => {
5959

6060
useEffect(() => {
6161
fetchCodePath();
62-
// eslint-disable-next-line react-hooks/exhaustive-deps -- we want to fetch code path once on mount, afterwards the "useDebouncedEffect" takes over
6362
}, []);
6463

6564
useDebouncedEffect(

0 commit comments

Comments
 (0)