refactor: implement new login logic and verify context.api status

This commit is contained in:
Prayag Prajapati committed 2024-05-29 18:10:22 +05:30
1 parent b1737b82e8
commit b8552ac35d
25 files changed
+589 -513

No files matched your search

@@ -7,7 +7,7 @@ import { useRouteContext } from "@tanstack/react-router";
import React from "react";
const PlayPreviousButton = () => {
const api = useRouteContext({ from: "/" }).api;
const api = useApiInContext((s) => s.api);
const user = useQuery({
queryKey: ["user"],
queryFn: async () => {