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

Function refetchByUser

examples/react/react-native/src/hooks/useRefreshByUser.ts:6–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4 const [isRefetchingByUser, setIsRefetchingByUser] = React.useState(false)
5
6 async function refetchByUser() {
7 setIsRefetchingByUser(true)
8
9 try {
10 await refetch()
11 } finally {
12 setIsRefetchingByUser(false)
13 }
14 }
15
16 return {
17 isRefetchingByUser,

Callers

nothing calls this directly

Calls 1

refetchFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…