MCPcopy Create free account
hub / github.com/TanStack/db / clearError

Method clearError

packages/query-db-collection/src/query.ts:293–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

291 }
292
293 public async clearError() {
294 this.state.lastError = undefined
295 this.state.errorCount = 0
296 this.state.lastErrorUpdatedAt = 0
297 await this.refetchFn({ throwOnError: true })
298 }
299
300 // Getters for error state
301 public get lastError() {

Callers 1

query.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected