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

Function onError

packages/browser-db-sqlite-persistence/src/opfs-database.ts:164–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162 }
163
164 const onError = (): void => {
165 rejectAllPendingRequests(
166 new PersistenceUnavailableError(`OPFS worker terminated unexpectedly`),
167 )
168 disposeWorker()
169 }
170
171 const onMessageError = (): void => {
172 rejectAllPendingRequests(

Callers 1

reportErrorFunction · 0.85

Calls 2

rejectAllPendingRequestsFunction · 0.85
disposeWorkerFunction · 0.85

Tested by

no test coverage detected