refactor(web-next): move bindAll to root layout
Centralizes DI initialization in the root layout so individual pages and the tRPC route handler no longer need to import or call it.
This commit is contained in:
@@ -2,10 +2,8 @@ import { dehydrate, HydrationBoundary } from "@tanstack/react-query";
|
||||
import { appRouter } from "@repo/core-api";
|
||||
import { getQueryClient } from "@repo/core-trpc";
|
||||
import { PageContent } from "@repo/marketing-pages/ui";
|
||||
import { bindAll } from "../../server/bind-production";
|
||||
|
||||
export default async function AboutPage() {
|
||||
await bindAll();
|
||||
const caller = appRouter.createCaller({});
|
||||
const queryClient = getQueryClient();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user