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

Function reload

packages/angular-query/src/query-resource.ts:105–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 }),
104 hasValue,
105 reload(): boolean {
106 const currentStatus = untracked(status)
107 if (
108 currentStatus === 'idle' ||
109 currentStatus === 'loading' ||
110 currentStatus === 'reloading'
111 ) {
112 return false
113 }
114
115 if (!untracked(query.isStale)) {
116 return false
117 }
118
119 void query.refetch()
120 return true
121 },
122 }
123}
124

Callers

nothing calls this directly

Calls 1

refetchMethod · 0.80

Tested by

no test coverage detected