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

Method emitIndexAdded

packages/db/src/collection/events.ts:178–184  ·  view source on GitHub ↗
(index: CollectionIndexMetadata)

Source from the content-addressed store, hash-verified

176 }
177
178 emitIndexAdded(index: CollectionIndexMetadata) {
179 this.emit(`index:added`, {
180 type: `index:added`,
181 collection: this.collection,
182 index,
183 })
184 }
185
186 emitIndexRemoved(index: CollectionIndexMetadata) {
187 this.emit(`index:removed`, {

Callers 1

createIndexMethod · 0.80

Calls 1

emitMethod · 0.95

Tested by

no test coverage detected