(
fetchOptions?: Omit<ObserverFetchOptions, 'initialPromise'>,
)
| 481 | } |
| 482 | |
| 483 | #executeFetch( |
| 484 | fetchOptions?: Omit<ObserverFetchOptions, 'initialPromise'>, |
| 485 | ): Promise<TQueryData | undefined> { |
| 486 | // Make sure we reference the latest query as the current one might have been removed |
| 487 | this.#updateQuery() |
| 488 | |
| 489 | // Fetch |
| 490 | let promise: Promise<TQueryData | undefined> = this.#currentQuery.fetch( |
| 491 | this.options, |
| 492 | fetchOptions, |
| 493 | ) |
| 494 | |
| 495 | if (!fetchOptions?.throwOnError) { |
| 496 | promise = promise.catch(noop) |
| 497 | } |
| 498 | |
| 499 | return promise |
| 500 | } |
| 501 | |
| 502 | #shouldScheduleTimer(timeout: unknown): timeout is number { |
| 503 | return ( |
no test coverage detected