Grabbed dndbeyond's source code
``` ~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js ```
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
export function shouldThrowError(suspense, _useErrorBoundary, params) {
|
||||
// Allow useErrorBoundary function to override throwing behavior on a per-error basis
|
||||
if (typeof _useErrorBoundary === 'function') {
|
||||
return _useErrorBoundary.apply(void 0, params);
|
||||
} // Allow useErrorBoundary to override suspense's throwing behavior
|
||||
|
||||
|
||||
if (typeof _useErrorBoundary === 'boolean') return _useErrorBoundary; // If suspense is enabled default to throwing errors
|
||||
|
||||
return !!suspense;
|
||||
}
|
||||
Reference in New Issue
Block a user