MCPcopy
hub / github.com/TanStack/query / handleRefetch

Function handleRefetch

packages/query-devtools/src/Devtools.tsx:1875–1879  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1873 const color = createMemo(() => getQueryStatusColorByLabel(statusLabel()))
1874
1875 const handleRefetch = () => {
1876 sendDevToolsEvent({ type: 'REFETCH', queryHash: activeQuery()?.queryHash })
1877 const promise = activeQuery()?.fetch()
1878 promise?.catch(() => {})
1879 }
1880
1881 const triggerError = (errorType?: DevtoolsErrorType) => {
1882 const activeQueryVal = activeQuery()

Callers

nothing calls this directly

Calls 2

sendDevToolsEventFunction · 0.85
fetchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…