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