forked from Github/frigate
useCallback here too
This commit is contained in:
@@ -42,9 +42,9 @@ export default function AppBar() {
|
||||
sendRestart();
|
||||
}, [setShowDialog]); // eslint-disable-line react-hooks/exhaustive-deps
|
||||
|
||||
const handleDismissRestartDialog = () => {
|
||||
const handleDismissRestartDialog = useCallback(() => {
|
||||
setShowDialog(false);
|
||||
};
|
||||
}, [setShowDialog]);
|
||||
|
||||
const handleRestart = useCallback(() => {
|
||||
setShowMoreMenu(false);
|
||||
|
||||
Reference in New Issue
Block a user