Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pacexy/flow
/ useLibrary
Function
useLibrary
apps/reader/src/hooks/useLibrary.ts:5–7 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
3
import
{ db } from
'../db'
4
5
export
function
useLibrary() {
6
return
useLiveQuery(() => db?.books.toArray() ?? [])
7
}
Callers
2
LibraryPane
Function · 0.90
Library
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected