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

Function handleRefetch

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

Source from the content-addressed store, hash-verified

1658 const color = createMemo(() => getQueryStatusColorByLabel(statusLabel()))
1659
1660 const handleRefetch = () => {
1661 sendDevToolsEvent({ type: 'REFETCH', queryHash: activeQuery()?.queryHash })
1662 const promise = activeQuery()?.fetch()
1663 promise?.catch(() => {})
1664 }
1665
1666 const triggerError = (errorType?: DevtoolsErrorType) => {
1667 const activeQueryVal = activeQuery()

Callers

nothing calls this directly

Calls 2

sendDevToolsEventFunction · 0.85
fetchMethod · 0.45

Tested by

no test coverage detected