avoid too many duplicate requireUserInServerComponent requests for each page+layout

This commit is contained in:
2025-09-10 00:12:57 +03:00
parent 2aad0329f3
commit 312027b9ed
13 changed files with 28 additions and 37 deletions

View File

@@ -26,7 +26,7 @@ export const generateMetadata = async () => {
async function UserHomePage() {
const client = getSupabaseServerClient();
const account = await loadCurrentUserAccount();
const { account } = await loadCurrentUserAccount();
const api = createAccountsApi(client);
const bmiThresholds = await api.fetchBmiThresholds();