MCPcopy Create free account
hub / github.com/massCodeIO/massCode / withNotesLoading

Function withNotesLoading

src/renderer/composables/spaces/notes/useNotes.ts:410–419  ·  view source on GitHub ↗
(loader: () => Promise<T>)

Source from the content-addressed store, hash-verified

408}
409
410async function withNotesLoading<T>(loader: () => Promise<T>): Promise<T> {
411 notesLoadingCounter.value += 1
412
413 try {
414 return await loader()
415 }
416 finally {
417 notesLoadingCounter.value = Math.max(0, notesLoadingCounter.value - 1)
418 }
419}
420
421async function createNote(payload?: CreateNotePayload) {
422 try {

Callers 2

getNotesFunction · 0.85
openNoteDeepLinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected