Skip to main content
Version: v1

ILoader Interface

The Runtime's view of the Loader, used for loading Containers

Signature​

export interface ILoader extends IFluidRouter, Partial<IProvideLoader>

Extends: IFluidRouter, Partial<IProvideLoader

Methods​

MethodReturn TypeDescription
resolve(request, pendingLocalState)Promise<IContainer>

Resolves the resource specified by the URL + headers contained in the request object to the underlying container that will resolve the request.

An analogy for this is resolve is a DNS resolve of a Fluid container. Request then executes a request against the server found from the resolve step.

Method Details​

resolve​

Resolves the resource specified by the URL + headers contained in the request object to the underlying container that will resolve the request.

An analogy for this is resolve is a DNS resolve of a Fluid container. Request then executes a request against the server found from the resolve step.

Signature​

resolve(request: IRequest, pendingLocalState?: string): Promise<IContainer>;

Parameters​

ParameterModifiersTypeDescription
requestIRequest
pendingLocalStateoptionalstring

Returns​

Return type: Promise<IContainer>