UNPKG

@tanstack/db

Version:

A reactive client store for building super fast apps on sync

22 lines (21 loc) • 531 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); function runAllCallbacks(callbacks) { let firstFailure; for (const callback of callbacks) { try { callback(); } catch (error) { firstFailure ??= { error }; } } if (firstFailure) throw firstFailure.error; } function reportUncaught(error) { queueMicrotask(() => { throw error; }); } exports.reportUncaught = reportUncaught; exports.runAllCallbacks = runAllCallbacks; //# sourceMappingURL=callbacks.cjs.map