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

Function handleSnapshotError

packages/electric-db-collection/src/electric.ts:434–441  ·  view source on GitHub ↗

* Handles errors from snapshot operations. Returns true if the error was * handled (signal aborted during cleanup), false if it should be re-thrown.

(error: unknown, operation: string)

Source from the content-addressed store, hash-verified

432 * handled (signal aborted during cleanup), false if it should be re-thrown.
433 */
434 function handleSnapshotError(error: unknown, operation: string): boolean {
435 if (signal.aborted) {
436 debug(`${logPrefix}Ignoring ${operation} error during cleanup: %o`, error)
437 return true
438 }
439 debug(`${logPrefix}Error in ${operation}: %o`, error)
440 return false
441 }
442
443 const loadSubset = async (opts: LoadSubsetOptions) => {
444 if (isBufferingInitialSync()) {

Callers 1

loadSubsetFunction · 0.85

Calls 1

debugFunction · 0.85

Tested by

no test coverage detected