resolvePushIneligibility()
function resolvePushIneligibility(
rxdb,
namespace,
entity,
syncType
): Promise<string | undefined>;
Defined in: packages/rxdb/src/sync-contract/sync-record-utils.ts:98
Internal
判定某个 repository 当前能否推送(syncType + RxDBSync.enabled 两道)
Parameters
| Parameter | Type | Description |
|---|---|---|
rxdb | RxDB | RxDB 实例 |
namespace | string | 命名空间 |
entity | string | 实体名 |
syncType | RepositorySyncType | 已解析的同步类型 |
Returns
Promise<string | undefined>
不具备资格时返回可读原因,具备资格时返回 undefined
Remarks
短路规则同 resolvePullIneligibility。