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

Method add

apps/client/src/code/pages/page-cache.ts:30–38  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

28 }
29
30 add(page: Page): void {
31 this.react.cache.push(page);
32
33 if (this.react.cache.length > 3) {
34 const page = this.react.cache.shift();
35
36 page?.destroy();
37 }
38 }
39
40 bump(pageId: string): void {
41 const pageIdx = this.react.cache.findIndex((page) => page.id === pageId);

Callers 10

addSocketMethod · 0.45
bufferizePageUpdateFunction · 0.45
_getPathPageIdsFunction · 0.45
_updateLastParentIdFunction · 0.45
scrollIntoViewFunction · 0.45
animateFunction · 0.45
setupPageMethod · 0.45
_subscribeMethod · 0.45

Calls 2

shiftMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected