Home > @plasmicapp/loader-fetcher > Api > fetchLoaderData
Api.fetchLoaderData() method
Signature:
fetchLoaderData(projectIds: string[], opts: {
platform?: "react" | "nextjs" | "gatsby";
platformOptions?: {
nextjs?: {
appDir: boolean;
};
};
preview?: boolean;
browserOnly?: boolean;
i18nKeyScheme?: "content" | "hash" | "path";
i18nTagPrefix?: string;
skipHead?: boolean;
}): Promise<LoaderBundleOutput>;
Parameters
Parameter | Type | Description |
---|---|---|
projectIds | string[] | |
opts | { platform?: "react" | "nextjs" | "gatsby"; platformOptions?: { nextjs?: { appDir: boolean; }; }; preview?: boolean; browserOnly?: boolean; i18nKeyScheme?: "content" | "hash" | "path"; i18nTagPrefix?: string; skipHead?: boolean; } |
Returns:
Promise<LoaderBundleOutput>