MCPcopy 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
27function 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
32function loadData() {

Callers 1

index.tsFile · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected