* Refetches the observed query and returns a promise that resolves with * the resulting `QueryObserverResult`. * * @example * ```ts * const result = await observer.refetch({ cancelRefetch: false }) * console.log(result.data) * ```
({ ...options }: RefetchOptions = {})
| 369 | * ``` |
| 370 | */ |
| 371 | refetch({ ...options }: RefetchOptions = {}): Promise< |
| 372 | QueryObserverResult<TData, TError> |
| 373 | > { |
| 374 | return this.fetch({ |
| 375 | ...options, |
| 376 | }) |
| 377 | } |
| 378 | |
| 379 | /** |
| 380 | * Fetches a query defined by the given options without affecting this |