Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/db
/ generateId
Function
generateId
examples/react-native/offline-transactions/server/index.ts:27–29 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
25
26
// Helper function to generate IDs
27
function
generateId(): string {
28
return
Math.random().toString(36).substring(2) + Date.now().toString(36)
29
}
30
31
// Load persisted data or seed with initial data
32
function
loadData() {
Callers
1
index.ts
File · 0.70
Calls
1
toString
Method · 0.45
Tested by
no test coverage detected