@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
Parameter | Type |
---|---|
_logService | ILogService |
_snapshotService | SnapshotService |
_localCacheService ? | ILocalCacheService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | RxDisposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
dispose$ | protected | Subject <void > | undefined | RxDisposable .dispose$ | submodules/univer/packages/core/src/shared/lifecycle.ts:120 |
unitInfo$ | readonly | Observable <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
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
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
Parameter | Type |
---|---|
unitId | string |
type | UniverType |
subUnitId ? | string |
Returns
Promise
<null
| UnitModel
>