File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import { useSheetStore } from './store/sheetStore';
1919import KaKaoRedirection from '@/components/KaKaoRedirection' ;
2020import { useSSE } from '@/hooks/useSSE' ;
2121import { useYotube } from '@/hooks/useYoutube' ;
22- import { useSpotifyAuth } from '@/hooks/spotify/useSpotifyAuth' ;
2322import PublicRoute from '@/routes/PublicRoute' ;
2423import CardDetailModalTemp from '@/components/modalSheet/CardDetailModalTemp' ;
2524import MyPage from '@/pages/mypage/MyPage' ;
@@ -28,7 +27,6 @@ import UserPage from '@/pages/userpage/UserPage';
2827function App ( ) {
2928 const { isRequestSendingSheetOpen, isRequestReceivingSheetOpen } = useSheetStore ( ) ;
3029
31- useSpotifyAuth ( ) ;
3230 useSSE ( ) ; // SSE연결
3331 useYotube ( ) ;
3432
Original file line number Diff line number Diff line change @@ -8,13 +8,16 @@ import axios from 'axios';
88import { useInfiniteQuery } from '@tanstack/react-query' ;
99import LoadingMini from '../loading/LoadingMini' ;
1010import { useSpotifyStore } from '@/store/spotifyStore' ;
11+ import { useSpotifyAuth } from '@/hooks/spotify/useSpotifyAuth' ;
1112
1213function MusicSearchSheet ( ) {
1314 const [ searchText , setSearchText ] = useState ( '' ) ;
1415 const [ query , setQuery ] = useState ( '' ) ;
1516 //로컬 스토리지에서 토큰 가져오기
1617 const { token } = useSpotifyStore ( ) ;
1718
19+ useSpotifyAuth ( ) ;
20+
1821 // 무한 스크롤 감지용 ref
1922 const loadMoreRef = useRef < HTMLDivElement | null > ( null ) ;
2023
You can’t perform that action at this time.
0 commit comments