@tanstack/react-query
Version:
Hooks for managing, caching and syncing asynchronous and remote data in React
16 lines (11 loc) • 429 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
function shouldThrowError(_useErrorBoundary, params) {
// Allow useErrorBoundary function to override throwing behavior on a per-error basis
if (typeof _useErrorBoundary === 'function') {
return _useErrorBoundary(...params);
}
return !!_useErrorBoundary;
}
exports.shouldThrowError = shouldThrowError;
//# sourceMappingURL=utils.js.map