Fluid container loader providing core container loading functionality for the Fluid Framework
Build a small wrapper that uses the dependency's loader features to compose URL resolution, document service creation, and runtime code loading, then resolve collaborative container requests while supporting pending-state recovery and telemetry-aware options. The gateway should create one loader instance and reuse it for every request it handles.
load with a request object resolves a container using the dependency's loader, returning the resolved URL string and the loaded container instance. @testpendingState is provided, load feeds it into the dependency so pending operations are applied before the container is returned. @test@generates
export interface LoaderGatewayConfig {
urlResolver: unknown;
documentServiceFactory: unknown;
codeLoader: unknown;
logger?: unknown;
options?: Record<string, any>;
protocolHandlerBuilder?: unknown;
scope?: Record<string, unknown>;
}
export interface LoaderRequest {
url: string;
headers?: Record<string, string>;
}
export interface LoadedContainerResult {
loader: unknown;
container: unknown;
resolvedUrl: string;
services: LoaderGatewayConfig;
}
export interface LoaderGateway {
services: LoaderGatewayConfig;
loader: unknown;
load(request: LoaderRequest, pendingState?: string): Promise<LoadedContainerResult>;
}
export function createLoaderGateway(config: LoaderGatewayConfig): LoaderGateway;Provides loader composition, request resolution, telemetry integration, and pending-state handling for collaborative containers.
@satisfied-by
tessl i tessl/npm-fluidframework--container-loader@2.60.0evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10