MCPcopy Create free account
hub / github.com/TanStack/query / updater

Function updater

packages/vue-query/src/useBaseQuery.ts:205–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203 }
204
205 const updater = () => {
206 observer.setOptions(defaultedOptions.value)
207 updateState(state, observer.getCurrentResult())
208 state.refetch = refetch
209 }
210
211 watch(defaultedOptions, updater)
212

Callers 1

useBaseQueryFunction · 0.85

Calls 3

updateStateFunction · 0.90
setOptionsMethod · 0.45
getCurrentResultMethod · 0.45

Tested by

no test coverage detected