* Refetches the query when the window regains focus, if an observer wants that, and continues a * paused fetch. * @internal
()
| 587 | * @internal |
| 588 | */ |
| 589 | onFocus(): void { |
| 590 | const observer = this.observers.find((x) => x.shouldFetchOnWindowFocus()) |
| 591 | |
| 592 | observer?.refetch({ cancelRefetch: false }) |
| 593 | |
| 594 | // Continue fetch if currently paused |
| 595 | this.#retryer?.continue() |
| 596 | } |
| 597 | |
| 598 | /** |
| 599 | * Refetches the query when the app reconnects, if an observer wants that, and continues a paused |
no test coverage detected