@univerjs-pro/collaboration-client v0.5.4


Class: DataLoaderService

Defined in: packages/collaboration-client/src/services/data-loader/data-loader.service.ts:19

This service provides a way to load data from the server and initialize the Univer instance.

Extends

Constructors

new DataLoaderService()

new DataLoaderService(
   _logService, 
   _snapshotService, 
   _localCacheService?): DataLoaderService

Defined in: packages/collaboration-client/src/services/data-loader/data-loader.service.ts:23

Parameters

ParameterType
_logServiceILogService
_snapshotServiceSnapshotService
_localCacheService?ILocalCacheService

Returns

DataLoaderService

Overrides

RxDisposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseRxDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
dispose$protectedSubject<void>undefinedRxDisposable.dispose$submodules/univer/packages/core/src/shared/lifecycle.ts:120
unitInfo$readonlyObservable<null | IUnitInfo>undefined-packages/collaboration-client/src/services/data-loader/data-loader.service.ts:21

Methods

dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:122

Returns

void

Inherited from

RxDisposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

RxDisposable.ensureNotDisposed


loadUnit()

loadUnit(
   unitId, 
   type, 
subUnitId?): Promise<null | UnitModel>

Defined in: packages/collaboration-client/src/services/data-loader/data-loader.service.ts:31

Parameters

ParameterType
unitIdstring
typeUniverType
subUnitId?string

Returns

Promise<null | UnitModel>