Type Alias: MakaioWebUiLoader<TData>
Makaio Framework / contracts/extension / MakaioWebUiLoader
Type Alias: MakaioWebUiLoader<TData>
Section titled “Type Alias: MakaioWebUiLoader<TData>”MakaioWebUiLoader<
TData> = (context) =>Promise<TData>
Defined in: ../../../packages/contracts/src/extension/contributions/web-ui-types.ts:40
Loader function that fetches data for a WebUI route.
Receives a LoaderContext with active session, UI context, and URL
params so loaders can return visibility-appropriate data. The resolved data
is passed to the component as loaderData.
Type Parameters
Section titled “Type Parameters”TData = unknown
Type of data returned by the loader.
Parameters
Section titled “Parameters”context
Section titled “context”Request context with session, UI context, and URL params.
Returns
Section titled “Returns”Promise<TData>
Promise resolving to the loader data.
Type Composition
Section titled “Type Composition”MakaioWebUiLoader(context: LoaderContext) => Promise<TData>