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

Method syncProjectsQueryOptions

examples/lit/pagination/src/main.ts:213–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211 }
212
213 private syncProjectsQueryOptions(): void {
214 this.projectsQueryOptions.queryKey = projectsQueryKey(
215 this.page,
216 this.delayMs,
217 this.forceErrorMode,
218 )
219 this.projectsQueryOptions.queryFn = () =>
220 fetchProjectsPage(this.page, this.delayMs, this.forceErrorMode)
221 }
222
223 private refetchForCurrentState(): void {
224 this.syncProjectsQueryOptions()

Callers 3

constructorMethod · 0.95
resetDemoStateMethod · 0.95

Calls 2

projectsQueryKeyFunction · 0.90
fetchProjectsPageFunction · 0.90

Tested by

no test coverage detected