( state: Pick<Store, 'vault' | 'workspaceMode' | 'remoteWorkspaceInfo'>, relPath: string )
| 2851 | const prefetchedNotePaths: string[] = [] |
| 2852 | |
| 2853 | function noteReadCacheKey( |
| 2854 | state: Pick<Store, 'vault' | 'workspaceMode' | 'remoteWorkspaceInfo'>, |
| 2855 | relPath: string |
| 2856 | ): string { |
| 2857 | return [ |
| 2858 | state.workspaceMode, |
| 2859 | state.vault?.root ?? '', |
| 2860 | state.remoteWorkspaceInfo?.baseUrl ?? '', |
| 2861 | state.remoteWorkspaceInfo?.profileId ?? '', |
| 2862 | relPath |
| 2863 | ].join('\0') |
| 2864 | } |
| 2865 | |
| 2866 | function clearNoteContentReadCaches(): void { |
| 2867 | noteReadPromises.clear() |
no outgoing calls
no test coverage detected