react-query
Version:
Hooks for managing, caching and syncing asynchronous and remote data in React
13 lines (10 loc) • 357 B
JavaScript
exports.__esModule = true;
exports.shouldThrowError = shouldThrowError;
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;
}
;