(config: QueryConfig<TQueryFnData, TError, TData, TQueryKey>)
| 166 | private hadObservers: boolean |
| 167 | |
| 168 | constructor(config: QueryConfig<TQueryFnData, TError, TData, TQueryKey>) { |
| 169 | this.abortSignalConsumed = false |
| 170 | this.hadObservers = false |
| 171 | this.defaultOptions = config.defaultOptions |
| 172 | this.setOptions(config.options) |
| 173 | this.observers = [] |
| 174 | this.cache = config.cache |
| 175 | this.queryKey = config.queryKey |
| 176 | this.queryHash = config.queryHash |
| 177 | this.initialState = config.state || this.getDefaultState(this.options) |
| 178 | this.state = this.initialState |
| 179 | this.meta = config.meta |
| 180 | this.scheduleGc() |
| 181 | } |
| 182 | |
| 183 | private setOptions( |
| 184 | options?: QueryOptions<TQueryFnData, TError, TData, TQueryKey> |
nothing calls this directly
no test coverage detected