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

Method setDeps

packages/db/src/collection/sync.ts:62–72  ·  view source on GitHub ↗
(deps: {
    collection: CollectionImpl<TOutput, TKey, any, TSchema, TInput>
    state: CollectionStateManager<TOutput, TKey, TSchema, TInput>
    lifecycle: CollectionLifecycleManager<TOutput, TKey, TSchema, TInput>
    events: CollectionEventsManager
  })

Source from the content-addressed store, hash-verified

60 }
61
62 setDeps(deps: {
63 collection: CollectionImpl<TOutput, TKey, any, TSchema, TInput>
64 state: CollectionStateManager<TOutput, TKey, TSchema, TInput>
65 lifecycle: CollectionLifecycleManager<TOutput, TKey, TSchema, TInput>
66 events: CollectionEventsManager
67 }) {
68 this.collection = deps.collection
69 this.state = deps.state
70 this.lifecycle = deps.lifecycle
71 this._events = deps.events
72 }
73
74 /**
75 * Start the sync process for this collection

Callers 1

constructorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected