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

Function getLoadedCount

packages/db-collection-e2e/src/utils/helpers.ts:50–54  ·  view source on GitHub ↗
(
  collection: Collection<T>,
)

Source from the content-addressed store, hash-verified

48 * Get count of loaded items in a collection
49 */
50export function getLoadedCount<T extends object>(
51 collection: Collection<T>,
52): number {
53 return collection.size
54}
55
56/**
57 * Check if a collection has loaded specific IDs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected