Skip to content 

RelativeLoader Class

Packages > @fluidframework/container-loader > RelativeLoader

Signature:

export declare class RelativeLoader extends EventEmitter implements ILoader 

Extends: EventEmitter

Implements: ILoader

Constructors

List of constructors for this class
Constructor Modifiers Description
(constructor)(loader, baseRequest) BaseRequest is the original request that triggered the load. This URL is used in case credentials need to be fetched again.

Properties

List of properties for this class
Property Modifiers Type Description
IFluidRouter IFluidRouter

Methods

List of methods on this class
Method Modifiers Description
createDetachedContainer(source)
rehydrateDetachedContainerFromSnapshot(source)
request(request)
resolve(request)
resolveContainer(container)

Constructors

RelativeLoader.(constructor)

BaseRequest is the original request that triggered the load. This URL is used in case credentials need to be fetched again.

Signature:

constructor(loader: ILoader, baseRequest: () => IRequest | undefined);

Parameters

List of parameters
Parameter Type Description
loader ILoader
baseRequest () => IRequest | undefined

Properties

IFluidRouter

Signature:

get IFluidRouter(): IFluidRouter;

Methods

createDetachedContainer

Signature:

createDetachedContainer(source: IFluidCodeDetails): Promise<Container>;

Parameters

List of parameters
Parameter Type Description
source IFluidCodeDetails

Returns:

Promise<Container>

rehydrateDetachedContainerFromSnapshot

Signature:

rehydrateDetachedContainerFromSnapshot(source: ISnapshotTree): Promise<Container>;

Parameters

List of parameters
Parameter Type Description
source ISnapshotTree

Returns:

Promise<Container>

request

Signature:

request(request: IRequest): Promise<IResponse>;

Parameters

List of parameters
Parameter Type Description
request IRequest

Returns:

Promise<IResponse>

resolve

Signature:

resolve(request: IRequest): Promise<IContainer>;

Parameters

List of parameters
Parameter Type Description
request IRequest

Returns:

Promise<IContainer>

resolveContainer

Signature:

resolveContainer(container: Container): void;

Parameters

List of parameters
Parameter Type Description
container Container

Returns:

void