(
fetchOptions?: Omit<ObserverFetchOptions, 'initialPromise'>,
)
| 350 | } |
| 351 | |
| 352 | #executeFetch( |
| 353 | fetchOptions?: Omit<ObserverFetchOptions, 'initialPromise'>, |
| 354 | ): Promise<TQueryData | undefined> { |
| 355 | // Make sure we reference the latest query as the current one might have been removed |
| 356 | this.#updateQuery() |
| 357 | |
| 358 | // Fetch |
| 359 | let promise: Promise<TQueryData | undefined> = this.#currentQuery.fetch( |
| 360 | this.options, |
| 361 | fetchOptions, |
| 362 | ) |
| 363 | |
| 364 | if (!fetchOptions?.throwOnError) { |
| 365 | promise = promise.catch(noop) |
| 366 | } |
| 367 | |
| 368 | return promise |
| 369 | } |
| 370 | |
| 371 | #shouldScheduleTimer(timeout: unknown): timeout is number { |
| 372 | return ( |
no test coverage detected