From 54919389c43a27507e2f90b824c36f2ad44278b9 Mon Sep 17 00:00:00 2001 From: Ru Chern Chong Date: Sun, 21 Jul 2024 02:07:48 +0800 Subject: [PATCH] Add missing dependency to useCallback --- app/components/MonthSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/MonthSelect.tsx b/app/components/MonthSelect.tsx index 2a1bd37..404b245 100644 --- a/app/components/MonthSelect.tsx +++ b/app/components/MonthSelect.tsx @@ -46,7 +46,7 @@ export const MonthSelect = ({ months, defaultMonth }: MonthSelectProps) => { const queryString = new URLSearchParams({ month }).toString(); router.replace(`${pathname}?${queryString}`); }, - [dispatch], + [dispatch, pathname, router], ); return (