mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
Fix lang change not showing without full page refresh
This commit is contained in:
parent
096c0fe5ea
commit
6e64155c7e
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user