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

+1 -1
View File
@@ -15,7 +15,7 @@ import { useMutation, useQuery } from "@tanstack/react-query";
import "./queueButton.scss";
import { useRouteContext } from "@tanstack/react-router";
const QueueButton = () => {
const api = useRouteContext({ from: "/" }).api;
const api = useApiInContext((s) => s.api);
const [queueItems, currentItemIndex] = useQueue((state) => [
state.tracks,
state.currentItemIndex,