The isNotFound function can be used to determine if an object is a NotFoundError object.
The isNotFound function accepts a single argument, an input.
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)) {
// ...
}
}
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.