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

Method syncProjectsQueryOptions

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

Source from the content-addressed store, hash-verified

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

Callers 3

constructorMethod · 0.95
resetDemoStateMethod · 0.95

Calls 2

projectsQueryKeyFunction · 0.90
fetchProjectsPageFunction · 0.90

Tested by

no test coverage detected