silverwolf-x/project / packages /next /src /client /components /is-next-router-error.ts
silverwolf-x's picture
download
raw
546 Bytes
import {
isHTTPAccessFallbackError,
type HTTPAccessFallbackError,
} from './http-access-fallback/http-access-fallback'
import { isRedirectError, type RedirectError } from './redirect-error'
/**
* Returns true if the error is a navigation signal error. These errors are
* thrown by user code to perform navigation operations and interrupt the React
* render.
*/
export function isNextRouterError(
error: unknown
): error is RedirectError | HTTPAccessFallbackError {
return isRedirectError(error) || isHTTPAccessFallbackError(error)
}

Xet Storage Details

Size:
546 Bytes
·
Xet hash:
c5f4ee1c94d9f88f70f74ec24440c963a34e354122b9d9b3c1cbfce3167bf88a

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