Skip to content

Commit

Permalink
minor fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
alerotta committed Feb 9, 2025
1 parent d3f6d73 commit 9189fe3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontend/src/components/Watch/Watch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import HLS from "hls.js";
import { useCallback, useEffect, useRef, useState } from "react";
import { useSearchParams } from "react-router-dom";
import { UserApi, VideoApi } from "../../api";
import { useQuery } from "@tanstack/react-query";
import { useQuery, useQueryClient } from "@tanstack/react-query";


import { masterPlaylistSrc } from "../../lib/consts";
Expand All @@ -24,6 +24,7 @@ type Quality = {
export default function Watch() {
const [searchParams] = useSearchParams();
const videoId = searchParams.get("v")!;
const queryClient = useQueryClient();
const hlsRef = useRef<HLS | null>(null);
const videoApi = new VideoApi();
const userApi = new UserApi();
Expand Down

0 comments on commit 9189fe3

Please # to comment.