refactor: move most routing logic to tanstack

This commit is contained in:
Prayag Prajapati committed 2024-05-29 18:10:22 +05:30
1 parent b8552ac35d
commit c22dbefeea
22 files changed
+1191 -1502

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ export const Route = createFileRoute("/_api/home/")({
});
function Home() {
const api = Route.useRouteContext().api;
const api = useApiInContext((s) => s.api);
const user = useQuery({
queryKey: ["user"],