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

Function updater

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

Source from the content-addressed store, hash-verified

141 }
142
143 const updater = () => {
144 observer.setOptions(defaultedOptions.value)
145 updateState(state, observer.getCurrentResult())
146 }
147
148 watch(defaultedOptions, updater)
149

Callers 1

refetchFunction · 0.85

Calls 3

updateStateFunction · 0.90
setOptionsMethod · 0.45
getCurrentResultMethod · 0.45

Tested by

no test coverage detected