cleanup: Remove debugging console logs - Remove timestamp logging from playlist selection and change detection - Remove loadPage call logging - Clean up temporary debugging code
This commit is contained in:
parent
510c6e1026
commit
e2ae3bd6d8
@ -154,7 +154,6 @@ export default function RekordboxReader() {
|
|||||||
}, [currentPlaylist, playlists, navigate, xmlLoading]);
|
}, [currentPlaylist, playlists, navigate, xmlLoading]);
|
||||||
|
|
||||||
const handlePlaylistSelect = (name: string) => {
|
const handlePlaylistSelect = (name: string) => {
|
||||||
console.log(`[${new Date().toISOString()}] Playlist selected:`, name);
|
|
||||||
setSelectedSong(null); // Clear selected song when changing playlists
|
setSelectedSong(null); // Clear selected song when changing playlists
|
||||||
if (name === "All Songs") {
|
if (name === "All Songs") {
|
||||||
navigate("/");
|
navigate("/");
|
||||||
|
|||||||
@ -38,7 +38,6 @@ export const usePaginatedSongs = (options: UsePaginatedSongsOptions = {}) => {
|
|||||||
|
|
||||||
// Load songs for a specific page
|
// Load songs for a specific page
|
||||||
const loadPage = useCallback(async (page: number, search?: string, targetPlaylist?: string) => {
|
const loadPage = useCallback(async (page: number, search?: string, targetPlaylist?: string) => {
|
||||||
console.log(`[${new Date().toISOString()}] loadPage called:`, { page, search, targetPlaylist });
|
|
||||||
if (loadingRef.current) return;
|
if (loadingRef.current) return;
|
||||||
|
|
||||||
const searchToUse = search ?? currentSearchQueryRef.current;
|
const searchToUse = search ?? currentSearchQueryRef.current;
|
||||||
@ -142,8 +141,6 @@ export const usePaginatedSongs = (options: UsePaginatedSongsOptions = {}) => {
|
|||||||
// Handle playlist changes
|
// Handle playlist changes
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (previousPlaylistRef.current !== playlistName) {
|
if (previousPlaylistRef.current !== playlistName) {
|
||||||
console.log(`[${new Date().toISOString()}] Playlist change detected:`, previousPlaylistRef.current, '->', playlistName);
|
|
||||||
|
|
||||||
// Update refs
|
// Update refs
|
||||||
currentPlaylistRef.current = playlistName;
|
currentPlaylistRef.current = playlistName;
|
||||||
currentSearchQueryRef.current = searchQuery;
|
currentSearchQueryRef.current = searchQuery;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user