silverwolf-x/project / packages /next /src /client /components /unstable-rethrow.browser.ts
silverwolf-x's picture
download
raw
377 Bytes
import { isBailoutToCSRError } from '../../shared/lib/lazy-dynamic/bailout-to-csr'
import { isNextRouterError } from './is-next-router-error'
export function unstable_rethrow(error: unknown): void {
if (isNextRouterError(error) || isBailoutToCSRError(error)) {
throw error
}
if (error instanceof Error && 'cause' in error) {
unstable_rethrow(error.cause)
}
}

Xet Storage Details

Size:
377 Bytes
·
Xet hash:
ae2c66334b6861cad0ada4ea1d3dc1be947a857835130af22f10bc935a021c6e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.