From c8a0d6443e1ecbc34c7f9689b0800b62efe1e0e8 Mon Sep 17 00:00:00 2001 From: witt Date: Fri, 11 Feb 2022 21:18:09 +0800 Subject: [PATCH] fix: ensure tabs can update handlers when language changes (#729) --- lib/components/layout/menu/menu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/layout/menu/menu.tsx b/lib/components/layout/menu/menu.tsx index 8444cc030..8eef44596 100644 --- a/lib/components/layout/menu/menu.tsx +++ b/lib/components/layout/menu/menu.tsx @@ -62,7 +62,7 @@ const Menu: React.FC = () => { const defaultPath = `/${locale}/${tab}` router.push(defaultPath) }, - [currentUrlTabValue], + [currentUrlTabValue, locale], ) return (