Router Docs
AI/LLM: This documentation page is available in plain markdown format at/router/latest/docs/api/router/isNotFoundFunction.md
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#
- Type: boolean
- true if the object is a NotFoundError.
- false if the object is not a NotFoundError.
Examples#
tsx
import { isNotFound } from '@tanstack/react-router'
function somewhere(obj: unknown) {
if (isNotFound(obj)) {
// ...
}
}