PureDataObject Class
This is a bare-bones base class that does basic setup and enables for factory on an initialize call. You probably don't want to inherit from this data store directly unless you are creating another base data store class
Signature
export declare abstract class PureDataObject<I extends DataObjectTypes = DataObjectTypes> extends EventForwarder<I["Events"] & IEvent> implements IFluidLoadable, IFluidRouter, IProvideFluidHandle
Extends: EventForwarder<I["Events"] & IEvent
Implements: IFluidLoadable, IFluidRouter, IProvideFluidHandle
Type Parameters
| Parameter | Constraint | Default | Description |
|---|---|---|---|
| I | DataObjectTypes | DataObjectTypes | The optional input types used to strongly type the data object |
Constructors
| Constructor | Description |
|---|---|
| (constructor)(props) | Constructs a new instance of the PureDataObject class |
Static Methods
| Method | Return Type | Description |
|---|---|---|
| getDataObject(runtime) | Promise<PureDataObject<DataObjectTypes>> |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| context | IFluidDataStoreContext | This context is used to talk up to the ContainerRuntime | |
| disposed | boolean | ||
| handle | IFluidHandle<this> | Handle to a data store | |
| id | string | ||
| IFluidHandle | IFluidHandle<this> | ||
| IFluidLoadable | this | ||
| IFluidRouter | this | ||
| initializeP | Promise<void> | undefined | ||
| initProps | optional | I["InitialState"] | |
| providers | AsyncFluidObjectProvider<I["OptionalProviders"]> | Providers are FluidObject keyed objects that provide back a promise to the corresponding FluidObject or undefined. Providers injected/provided by the Container and/or HostingApplication To define providers set FluidObject interfaces in the OptionalProviders generic type for your data store | |
| runtime | IFluidDataStoreRuntime | This is your FluidDataStoreRuntime object |