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

Method onEntitySyncSuccess

packages/client/src/sync-engine.ts:529–538  ·  view source on GitHub ↗
(
    collection: string,
    entityId: string,
    callback: () => void
  )

Source from the content-addressed store, hash-verified

527 }
528
529 onEntitySyncSuccess(
530 collection: string,
531 entityId: string,
532 callback: () => void
533 ) {
534 this.entitySyncSuccessSubscribers.set(collection, entityId, callback);
535 return () => {
536 this.entitySyncSuccessSubscribers.delete(collection, entityId);
537 };
538 }
539
540 onEntitySyncError(
541 collection: string,

Callers 2

outbox.spec.tsFile · 0.45
CreateEntitySheetFunction · 0.45

Calls 2

setMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected