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

Function apiDelete

packages/query-db-collection/tests/query.test.ts:6463–6466  ·  view source on GitHub ↗
(id: number)

Source from the content-addressed store, hash-verified

6461 }
6462
6463 const apiDelete = async (id: number): Promise<void> => {
6464 await sleep(MUTATION_DELAY)
6465 serverItems = serverItems.filter((a) => a.id !== id)
6466 }
6467
6468 const collection = createCollection(
6469 queryCollectionOptions<Assignment>({

Callers 1

query.test.tsFile · 0.85

Calls 2

filterMethod · 0.80
sleepFunction · 0.70

Tested by

no test coverage detected