Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/marktext/marktext
/ getUniqueId
Function
getUniqueId
packages/desktop/src/main/utils/index.ts:6–8 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
4
let
id = 0
5
6
export
const
getUniqueId = (): string => {
7
return
`${ID_PREFIX}${id++}`
8
}
9
10
// TODO: Remove this function and load the recommend title from the editor (renderer) when
11
// requesting the document to save/export.
Callers
1
watch
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected