mirror of
https://github.com/tale/headplane.git
synced 2026-08-30 08:49:30 +00:00
feat: initial fate based SPA
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user