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

Function writeAll

packages/react-db/tests/useLiveInfiniteQuery.test.tsx:78–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 function writeAll(): void {
79 begin()
80 for (const post of filtered) {
81 write({ type: `insert`, value: post })
82 }
83 commit()
84 }
85
86 if (asyncDelay !== undefined) {
87 return new Promise<void>((resolve) => {

Callers 1

createOnDemandCollectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected