Skip to main content

FluidObjectHandle Class

Handle for a shared FluidObject.

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

To use, import via @fluidframework/datastore/legacy.

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

Signature

export declare class FluidObjectHandle<T extends FluidObject = FluidObject> extends FluidHandleBase<T>

Extends: FluidHandleBase<T>

Type Parameters

ParameterConstraintDefaultDescription
TFluidObjectFluidObject

Constructors

ConstructorAlertsDescription
(constructor)(value, path, routeContext)BetaCreates a new FluidObjectHandle.

Properties

PropertyAlertsModifiersTypeDescription
absolutePathBetareadonlystring
isAttachedBetareadonlyboolean
pathBetareadonlystring
routeContextBetareadonlyIFluidHandleContext
valueBetareadonlyT | Promise<T>

Methods

MethodAlertsReturn TypeDescription
attachGraph()Betavoid
get()BetaPromise<any>

Constructor Details

(constructor)

Creates a new FluidObjectHandle.

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

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

Signature

constructor(value: T | Promise<T>, path: string, routeContext: IFluidHandleContext);

Parameters

ParameterTypeDescription
valueT | Promise<T>The FluidObject object this handle is for.
pathstringThe path to this handle relative to the routeContext.
routeContextIFluidHandleContextThe parent @fluidframework/core-interfaces#IFluidHandleContext that has a route to this handle.

Property Details

absolutePath

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

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

Signature

readonly absolutePath: string;

Type: string

isAttached

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

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

Signature

get isAttached(): boolean;

Type: boolean

path

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

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

Signature

readonly path: string;

Type: string

routeContext

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

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

Signature

readonly routeContext: IFluidHandleContext;

Type: IFluidHandleContext

value

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

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

Signature

protected readonly value: T | Promise<T>;

Type: T | Promise<T>

Method Details

attachGraph

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

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

Signature

attachGraph(): void;

get

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

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

Signature

get(): Promise<any>;

Returns

Return type: Promise<any>