()
| 217 | } |
| 218 | |
| 219 | private optionalRemove() { |
| 220 | if (!this.observers.length) { |
| 221 | if (this.state.isFetching) { |
| 222 | if (this.hadObservers) { |
| 223 | this.scheduleGc() |
| 224 | } |
| 225 | } else { |
| 226 | this.cache.remove(this) |
| 227 | } |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | setData( |
| 232 | updater: Updater<TData | undefined, TData>, |
no test coverage detected