(
fetchOptions?: Omit<ObserverFetchOptions, 'initialPromise'>,
)
| 458 | } |
| 459 | |
| 460 | #executeFetch( |
| 461 | fetchOptions?: Omit<ObserverFetchOptions, 'initialPromise'>, |
| 462 | ): Promise<TQueryData | undefined> { |
| 463 | // Make sure we reference the latest query as the current one might have been removed |
| 464 | this.#updateQuery() |
| 465 | |
| 466 | // Fetch |
| 467 | let promise: Promise<TQueryData | undefined> = this.#currentQuery.fetch( |
| 468 | this.options, |
| 469 | fetchOptions, |
| 470 | ) |
| 471 | |
| 472 | if (!fetchOptions?.throwOnError) { |
| 473 | promise = promise.catch(noop) |
| 474 | } |
| 475 | |
| 476 | return promise |
| 477 | } |
| 478 | |
| 479 | #shouldScheduleTimer(timeout: unknown): timeout is number { |
| 480 | return ( |
no test coverage detected