MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / isSynced

Method isSynced

apps/client/src/code/realtime/client.ts:471–483  ·  view source on GitHub ↗
(prefix: DataPrefix_, suffix: string, field: DataField)

Source from the content-addressed store, hash-verified

469 }
470
471 isSynced<
472 DataPrefix_ extends DataPrefix,
473 DataField extends Extract<
474 keyof (typeof dataHashes)[DataPrefix_]['fields'],
475 string
476 > = Extract<keyof (typeof dataHashes)[DataPrefix_]['fields'], string>,
477 >(prefix: DataPrefix_, suffix: string, field: DataField) {
478 const fullKey = getFullKey(prefix, suffix, field);
479
480 this.markAsDependencies([fullKey]);
481
482 return fullKey in this.subscriptions && fullKey in this.values;
483 }
484
485 markAsDependencies(fullKeys: string[]) {
486 for (const fullKey of fullKeys) {

Callers 5

hgetMethod · 0.80
hgetAsyncMethod · 0.80
mhgetCoalesceMethod · 0.80
_subscribeMethod · 0.80

Calls 2

getFullKeyFunction · 0.90
markAsDependenciesMethod · 0.80

Tested by

no test coverage detected