MCPcopy Index your code
hub / github.com/TanStack/db / isThisCollection

Method isThisCollection

packages/db/src/collection/state.ts:471–475  ·  view source on GitHub ↗

* Check if the given collection is this collection * @param collection The collection to check * @returns True if the given collection is this collection, false otherwise

(
    collection: CollectionImpl<any, any, any, any, any>,
  )

Source from the content-addressed store, hash-verified

469 * @returns True if the given collection is this collection, false otherwise
470 */
471 private isThisCollection(
472 collection: CollectionImpl<any, any, any, any, any>,
473 ): boolean {
474 return collection === this.collection
475 }
476
477 /**
478 * Recompute optimistic state from active transactions

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected