fix react-hooks/exhaustive-deps warnings
This commit is contained in:
@@ -117,8 +117,7 @@ export function ShortcutsSection() {
|
||||
}
|
||||
window.addEventListener('keydown', onKey, true)
|
||||
return () => window.removeEventListener('keydown', onKey, true)
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [capturingId, overrides])
|
||||
}, [capturingId, overrides, commit])
|
||||
|
||||
return (
|
||||
<Section
|
||||
|
||||
Reference in New Issue
Block a user