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

Method setDeps

packages/db/src/collection/lifecycle.ts:48–60  ·  view source on GitHub ↗
(deps: {
    indexes: CollectionIndexesManager<TOutput, TKey, TSchema, TInput>
    events: CollectionEventsManager
    changes: CollectionChangesManager<TOutput, TKey, TSchema, TInput>
    sync: CollectionSyncManager<TOutput, TKey, TSchema, TInput>
    state: CollectionStateManager<TOutput, TKey, TSchema, TInput>
  })

Source from the content-addressed store, hash-verified

46 }
47
48 setDeps(deps: {
49 indexes: CollectionIndexesManager<TOutput, TKey, TSchema, TInput>
50 events: CollectionEventsManager
51 changes: CollectionChangesManager<TOutput, TKey, TSchema, TInput>
52 sync: CollectionSyncManager<TOutput, TKey, TSchema, TInput>
53 state: CollectionStateManager<TOutput, TKey, TSchema, TInput>
54 }) {
55 this.indexes = deps.indexes
56 this.events = deps.events
57 this.changes = deps.changes
58 this.sync = deps.sync
59 this.state = deps.state
60 }
61
62 /**
63 * Validates state transitions to prevent invalid status changes

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected