Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/db
/ getById
Function
getById
examples/react/offline-transactions/src/utils/todos.ts:35–37 ·
view source on GitHub ↗
(id: string)
Source
from the content-addressed store, hash-verified
33
},
34
35
getById(id: string): Todo | undefined {
36
return
todosStore.get(id)
37
},
38
39
create(input: TodoInput): Todo {
40
const
now =
new
Date()
Callers
nothing calls this directly
Calls
1
get
Method · 0.45
Tested by
no test coverage detected