mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-10 19:35:46 -05:00
Fix lang change not showing without full page refresh
This commit is contained in:
@@ -79,6 +79,8 @@ export const shouldRevalidate: ShouldRevalidateFunction = (args) => {
|
||||
const json = args.json as Record<string, unknown> | undefined;
|
||||
if (json?.revalidateRoot === true) return true;
|
||||
|
||||
if (args.nextUrl.searchParams.has("lng")) return true;
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user