MCPcopy Create free account
hub / github.com/SvelteStack/svelte-query / constructor

Method constructor

src/queryCore/core/queryObserver.ts:82–100  ·  view source on GitHub ↗
(
    client: QueryClient,
    options: QueryObserverOptions<
      TQueryFnData,
      TError,
      TData,
      TQueryData,
      TQueryKey
    >
  )

Source from the content-addressed store, hash-verified

80 private trackedProps!: Array<keyof QueryObserverResult>
81
82 constructor(
83 client: QueryClient,
84 options: QueryObserverOptions<
85 TQueryFnData,
86 TError,
87 TData,
88 TQueryData,
89 TQueryKey
90 >
91 ) {
92 super()
93
94 this.client = client
95 this.options = options
96 this.trackedProps = []
97 this.previousSelectError = null
98 this.bindMethods()
99 this.setOptions(options)
100 }
101
102 protected bindMethods(): void {
103 this.remove = this.remove.bind(this)

Callers

nothing calls this directly

Calls 2

bindMethodsMethod · 0.95
setOptionsMethod · 0.95

Tested by

no test coverage detected