MCPcopy Create free account
hub / github.com/code-forge-io/Remix-Forge / generateClientLoader

Function generateClientLoader

src/generators/clintLoader.ts:3–13  ·  view source on GitHub ↗
(config: WorkspaceConfiguration)

Source from the content-addressed store, hash-verified

1import type { WorkspaceConfiguration } from "vscode";
2
3export const generateClientLoader = (config: WorkspaceConfiguration) => {
4 const customClientLoader = config.get("clientLoader");
5 if (customClientLoader) {
6 return `${customClientLoader}\n`;
7 }
8 return [
9 "export const clientLoader = async ({ request }: ClientLoaderFunctionArgs) => {",
10 " return null;",
11 "};",
12 ].join("\n");
13};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected