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

Function handleRefetch

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

Source from the content-addressed store, hash-verified

1916 const color = createMemo(() => getQueryStatusColorByLabel(statusLabel()))
1917
1918 const handleRefetch = () => {
1919 sendDevToolsEvent({ type: 'REFETCH', queryHash: activeQuery()?.queryHash })
1920 const promise = activeQuery()?.fetch()
1921 promise?.catch(() => {})
1922 }
1923
1924 const triggerError = (errorType?: DevtoolsErrorType) => {
1925 const activeQueryVal = activeQuery()

Callers

nothing calls this directly

Calls 2

sendDevToolsEventFunction · 0.85
fetchMethod · 0.45

Tested by

no test coverage detected