跳到主要内容

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​

ParameterTypeDescription
rxdbRxDBRxDB 实例
namespacestring命名空间
entitystring实体名
syncTypeRepositorySyncType已解析的同步类型

Returns​

Promise<string | undefined>

不具备资格时返回可读原因,具备资格时返回 undefined

Remarks​

短路规则同 resolvePullIneligibility。