fix: react-doctor async-defer-await 10→0 (move await below guards), rerender-memo-with-default-value 13→0 (module-scope EMPTY_* defaults)
This commit is contained in:
@@ -435,7 +435,8 @@ await getSession(); const cookieStore = await cookies();
|
||||
|
||||
export async function setWaterLang(lang: string): Promise<void> {
|
||||
|
||||
await getSession(); if (!["en", "es"].includes(lang)) return;
|
||||
if (!["en", "es"].includes(lang)) return;
|
||||
await getSession();
|
||||
const cookieStore = await cookies();
|
||||
cookieStore.set("wl_lang", lang, {
|
||||
httpOnly: false,
|
||||
|
||||
Reference in New Issue
Block a user