From 3876b00088c132c288dbfe61b96c6b944c48bafd Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 6 Jul 2021 07:34:39 -0500 Subject: [PATCH] useCallback here too --- web/src/AppBar.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/AppBar.jsx b/web/src/AppBar.jsx index d6812be4a..8a8183e00 100644 --- a/web/src/AppBar.jsx +++ b/web/src/AppBar.jsx @@ -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);