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

Method willUpdate

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

Source from the content-addressed store, hash-verified

90 private dataQuery?: QueryResultAccessor<DataResponse, Error>
91
92 protected override willUpdate(): void {
93 if (!this.dataQuery && this.queryClient) {
94 incrementSsrQueryControllerCreationCount(this.queryClient)
95 this.dataQuery = createQueryController(
96 this,
97 createDataQueryOptions(this.apiBaseUrl),
98 this.queryClient,
99 )
100 }
101 }
102
103 private readonly handleRefetch = (): void => {
104 void this.dataQuery?.refetch()

Callers

nothing calls this directly

Tested by

no test coverage detected