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

Method willUpdate

examples/lit/ssr/src/app.ts:86–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 private dataQuery?: QueryResultAccessor<DataResponse, Error>
85
86 protected override willUpdate(): void {
87 if (!this.dataQuery && this.queryClient) {
88 incrementSsrQueryControllerCreationCount(this.queryClient)
89 this.dataQuery = createQueryController(
90 this,
91 dataQueries.detail(this.apiBaseUrl),
92 this.queryClient,
93 )
94 }
95 }
96
97 private readonly handleRefetch = (): void => {
98 void this.dataQuery?.refetch()

Callers

nothing calls this directly

Tested by

no test coverage detected