sendou.ink/app/features/user-page/loaders/u.$identifier.edit-widgets.server.ts
Kalle 77978c450f
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
New user page (#2812)
Co-authored-by: hfcRed <hfcred@gmx.net>
2026-02-16 19:26:57 +02:00

11 lines
318 B
TypeScript

import { requireUser } from "~/features/auth/core/user.server";
import * as UserRepository from "~/features/user-page/UserRepository.server";
export const loader = async () => {
const user = requireUser();
const currentWidgets = await UserRepository.storedWidgetsByUserId(user.id);
return { currentWidgets };
};