From b2c94318e8405c8526728248c225943bb0bdf7fc Mon Sep 17 00:00:00 2001 From: Krushna Kanta Rout <129386740+krushnarout@users.noreply.github.com> Date: Fri, 18 Apr 2025 12:01:04 +0530 Subject: [PATCH] fix: add dispatch to useEffect dependency array --- src/content/6/en/part6c.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/6/en/part6c.md b/src/content/6/en/part6c.md index d46501ebaf..8d1a1b515d 100644 --- a/src/content/6/en/part6c.md +++ b/src/content/6/en/part6c.md @@ -234,7 +234,7 @@ const App = () => { useEffect(() => { noteService .getAll().then(notes => dispatch(setNotes(notes))) - }, []) + }, [dispatch]) // highlight-end return (