Docs
Cloudflare
CodeRabbit
Railway
WorkOS
OpenRouter
SerpAPI
Clerk
Netlify
AG Grid
Sentry
Electric
Prisma
Unkey
Cloudflare
CodeRabbit
Railway
WorkOS
OpenRouter
SerpAPI
Clerk
Netlify
AG Grid
Sentry
Electric
Prisma
Unkey
Integrations

isNotFound function

The isNotFound function can be used to determine if an object is a NotFoundError object.

isNotFound options

The isNotFound function accepts a single argument, an input.

input option

  • Type: unknown
  • Required
  • An object to check if it is a NotFoundError.

isNotFound returns

Examples

tsx
import { isNotFound } from '@tanstack/react-router'

function somewhere(obj: unknown) {
  if (isNotFound(obj)) {
    // ...
  }
}
import { isNotFound } from '@tanstack/react-router'

function somewhere(obj: unknown) {
  if (isNotFound(obj)) {
    // ...
  }
}