@preact-signals/query
Version:
A reactive utility for React/Preact that simplifies the handling of data fetching and state management. Powered by Preact Signals, it provides hooks and functions to create reactive resources and manage their state seamlessly.
12 lines • 471 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.shouldThrowError = void 0;
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