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

Method Return Type Description
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

Parameter Modifiers Type Description
request IRequest
pendingLocalState optional string

Returns

Return type: Promise<IContainer>