MCPcopy Create free account
hub / github.com/TanStack/db / getAll

Function getAll

examples/react-native/shopping-list/src/utils/api.ts:33–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32export const listsApi = {
33 async getAll(): Promise<Array<ShoppingList>> {
34 const response = await offlineAwareFetch(`${API_URL}/api/lists`)
35 if (!response.ok) {
36 throw new Error(`Failed to fetch lists: ${response.status}`)
37 }
38 return response.json()
39 },
40
41 async create(data: {
42 id?: string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected