* Returns the `QueryClient`, throwing when none is available. * @returns The explicitly passed client, otherwise the client from context. * @throws {Error} If no `QueryClient` is available.
()
| 159 | * @throws {Error} If no `QueryClient` is available. |
| 160 | */ |
| 161 | protected getQueryClient(): QueryClient { |
| 162 | const client = this.tryGetQueryClient() |
| 163 | if (!client) { |
| 164 | throw createMissingQueryClientError() |
| 165 | } |
| 166 | |
| 167 | return client |
| 168 | } |
| 169 | |
| 170 | /** |
| 171 | * Stores a new result and requests a host update, unless it is the same |
nothing calls this directly
no test coverage detected