* Merges the given partial state directly into this query's state, notifying observers. Used * by persistence and broadcast plugins to restore a state snapshot, and by devtools to let a * user manually trigger a loading/error state or edit the cached data.
(state: Partial<QueryState<TData, TError>>)
| 332 | * user manually trigger a loading/error state or edit the cached data. |
| 333 | */ |
| 334 | setState(state: Partial<QueryState<TData, TError>>): void { |
| 335 | this.#dispatch({ type: 'setState', state }) |
| 336 | } |
| 337 | |
| 338 | /** |
| 339 | * Cancels the query's currently in-flight fetch, if any. |