perf(widgets): lazy load the application graph
This commit is contained in:
1 parent
4ca0b747bb
commit
6b74078766
38 files changed
+676
-202
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { createRscTrpcContext } from "./rsc-context";
|
||||
import { downloadsRouter } from "./router/widgets/downloads";
|
||||
|
||||
export const getDownloadJobsAndStatusesAsync = async (input: {
|
||||
integrationIds: string[];
|
||||
limitPerIntegration: number;
|
||||
}) => {
|
||||
// Keep this leaf caller narrow: the shared server caller imports the complete app router into every widget-prefetch build.
|
||||
const caller = downloadsRouter.createCaller(await createRscTrpcContext());
|
||||
return await caller.getJobsAndStatuses(input);
|
||||
};
|
||||
Reference in new issue
Block a user