feat: initial fate based SPA

This commit is contained in:
Aarnav Tale
2026-05-16 20:15:04 -04:00
parent fb4b0b1404
commit 04ff2138d2
13 changed files with 1549 additions and 70 deletions
+21
View File
@@ -0,0 +1,21 @@
import { RouterProvider } from "@tanstack/react-router";
import { FateClient, createClient, createHTTPTransport } from "react-fate";
import { router } from "./router";
const fate = createClient({
roots: {},
transport: createHTTPTransport({
fetch: (input, init) => fetch(input, { ...init, credentials: "include" }),
url: `${__PREFIX__}/fate`,
}),
types: [],
});
export function App() {
return (
<FateClient client={fate}>
<RouterProvider router={router} />
</FateClient>
);
}