We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0cb014 commit 00d7b8cCopy full SHA for 00d7b8c
client/src/routes/catchall.tsx
@@ -1,5 +1,14 @@
1
import AppRoot from "~/index";
2
3
+import { data, type LoaderFunctionArgs } from "react-router";
4
+
5
+export async function loader({ request }: LoaderFunctionArgs) {
6
+ if (request.url.includes("does-not-exist")) {
7
+ return data({}, 404);
8
+ }
9
+ return data({});
10
+}
11
12
export default function Component() {
13
return <AppRoot />;
14
}
0 commit comments