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

Function updater

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

Source from the content-addressed store, hash-verified

133 }
134
135 const updater = () => {
136 observer.setOptions(defaultedOptions.value)
137 updateState(state, observer.getCurrentResult())
138 }
139
140 watch(defaultedOptions, updater)
141

Callers 1

refetchFunction · 0.85

Calls 3

updateStateFunction · 0.90
setOptionsMethod · 0.45
getCurrentResultMethod · 0.45

Tested by

no test coverage detected