(
fetchOptions?: Omit<ObserverFetchOptions, 'initialPromise'>,
)
| 333 | } |
| 334 | |
| 335 | #executeFetch( |
| 336 | fetchOptions?: Omit<ObserverFetchOptions, 'initialPromise'>, |
| 337 | ): Promise<TQueryData | undefined> { |
| 338 | // Make sure we reference the latest query as the current one might have been removed |
| 339 | this.#updateQuery() |
| 340 | |
| 341 | // Fetch |
| 342 | let promise: Promise<TQueryData | undefined> = this.#currentQuery.fetch( |
| 343 | this.options, |
| 344 | fetchOptions, |
| 345 | ) |
| 346 | |
| 347 | if (!fetchOptions?.throwOnError) { |
| 348 | promise = promise.catch(noop) |
| 349 | } |
| 350 | |
| 351 | return promise |
| 352 | } |
| 353 | |
| 354 | #updateStaleTimeout(): void { |
| 355 | this.#clearStaleTimeout() |
no test coverage detected