Skip to content

Commit 3110e61

Browse files
committed
remove handler dependency
1 parent fcb5ba2 commit 3110e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/KeypressListener/KeypressListener.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function KeypressListener({
2424
handlerRef.current(event);
2525
}
2626
},
27-
[handler, keyCode],
27+
[keyCode],
2828
);
2929

3030
useIsomorphicLayoutEffect(() => {

0 commit comments

Comments
 (0)