MCPcopy
hub / github.com/aspen-cloud/triplit / onEntitySyncError

Method onEntitySyncError

packages/client/src/sync-engine.ts:540–549  ·  view source on GitHub ↗
(
    collection: string,
    entityId: string,
    callback: EntitySyncErrorCallback
  )

Source from the content-addressed store, hash-verified

538 }
539
540 onEntitySyncError(
541 collection: string,
542 entityId: string,
543 callback: EntitySyncErrorCallback
544 ) {
545 this.entitySyncErrorSubscribers.set(collection, entityId, callback);
546 return () => {
547 this.entitySyncErrorSubscribers.delete(collection, entityId);
548 };
549 }
550
551 onFailureToSyncWrites(callback: (e: unknown) => void) {
552 this.onFailureToSyncWritesSubscribers.add(callback);

Callers 2

CreateEntitySheetFunction · 0.45

Calls 2

setMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected