MCPcopy 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

3import { db } from '../db'
4
5export function useLibrary() {
6 return useLiveQuery(() => db?.books.toArray() ?? [])
7}

Callers 2

LibraryPaneFunction · 0.90
LibraryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected