feat: sse events

This commit is contained in:
Nicolas Meienberger
2025-11-08 11:06:26 +01:00
parent 5b4b571581
commit fd3a527164
11 changed files with 263 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ import { Toaster } from "~/components/ui/sonner";
import type { Route } from "./+types/root";
import "./app.css";
import { client } from "./api-client/client.gen";
import { useServerEvents } from "./hooks/use-server-events";
client.setConfig({
baseUrl: "/",
@@ -63,6 +64,8 @@ export function Layout({ children }: { children: React.ReactNode }) {
}
export default function App() {
useServerEvents();
return <Outlet />;
}