Skip to content

Commit

Permalink
fix: force remount of NavigationMenus when language changed to fix A-…
Browse files Browse the repository at this point in the history
…>B->A
  • Loading branch information
japsu committed Feb 1, 2024
1 parent 5d5d65c commit d967cf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/app/[locale]/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export default async function Navigation({ locale }: NavigationProps) {
<Link href="/" className="navbar-brand">
{translations.Brand.appName}
</Link>
{/* key: force remount when language changed to fix A->B->A transition */}
<NavigationMenus
key={locale}
session={session}
locale={locale}
messages={messages}
Expand Down

0 comments on commit d967cf2

Please sign in to comment.