ILoader Interface

Packages > @fluidframework/container-definitions > ILoader

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

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/container-definitions/legacy.

For more information about our API support guarantees, see here .

Signature

export interface ILoader extends Partial<IProvideLoader>

Extends: Partial<IProvideLoader >

Methods

Method Alerts Return Type Description
resolve(request, pendingLocalState) Alpha Promise<IContainer> Resolves the resource specified by the URL + headers contained in the request object to the underlying container that will resolve the request.

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.

This API is provided as an alpha preview and may change without notice.

To use, import via @fluidframework/container-definitions/alpha.

For more information about our API support guarantees, see here .

Signature

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

Remarks

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.

Parameters

Parameter Modifiers Type Description
request IRequest
pendingLocalState optional string

Returns

Return type: Promise<IContainer >