* Refetches the query when the app reconnects, if an observer wants that, and continues a paused * fetch. * @internal
()
| 601 | * @internal |
| 602 | */ |
| 603 | onOnline(): void { |
| 604 | const observer = this.observers.find((x) => x.shouldFetchOnReconnect()) |
| 605 | |
| 606 | observer?.refetch({ cancelRefetch: false }) |
| 607 | |
| 608 | // Continue fetch if currently paused |
| 609 | this.#retryer?.continue() |
| 610 | } |
| 611 | |
| 612 | /** |
| 613 | * Subscribes an observer to the query and stops its garbage collection. |
no test coverage detected