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

Function handleRefetch

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

Source from the content-addressed store, hash-verified

2043 const color = createMemo(() => getQueryStatusColorByLabel(statusLabel()))
2044
2045 const handleRefetch = () => {
2046 sendDevToolsEvent({ type: 'REFETCH', queryHash: activeQuery()?.queryHash })
2047 const promise = activeQuery()?.fetch()
2048 promise?.catch(() => {})
2049 }
2050
2051 const triggerError = (errorType?: DevtoolsErrorType) => {
2052 const activeQueryVal = activeQuery()

Callers

nothing calls this directly

Calls 2

sendDevToolsEventFunction · 0.85
fetchMethod · 0.45

Tested by

no test coverage detected