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

Method mhgetCoalesce

apps/client/src/code/realtime/context.ts:58–70  ·  view source on GitHub ↗
(items: [DataPrefix, string, string][])

Source from the content-addressed store, hash-verified

56 }
57
58 mhgetCoalesce(items: [DataPrefix, string, string][]) {
59 for (const item of items) {
60 const value = this.hget(item[0] as any, item[1], item[2]);
61
62 if (!internals.realtime.isSynced(item[0] as any, item[1], item[2])) {
63 return;
64 }
65
66 if (value != null) {
67 return value;
68 }
69 }
70 }
71 mhget(items: [DataPrefix, string, string][]) {
72 return items.map(([prefix, suffix, field]) =>
73 this.hget(prefix as any, suffix, field),

Callers

nothing calls this directly

Calls 2

isSyncedMethod · 0.80
hgetMethod · 0.45

Tested by

no test coverage detected