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]);
|
||||
|
||||
const handlePlaylistSelect = (name: string) => {
|
||||
console.log(`[${new Date().toISOString()}] Playlist selected:`, name);
|
||||
setSelectedSong(null); // Clear selected song when changing playlists
|
||||
if (name === "All Songs") {
|
||||
navigate("/");
|
||||
|
||||
@ -38,7 +38,6 @@ export const usePaginatedSongs = (options: UsePaginatedSongsOptions = {}) => {
|
||||
|
||||
// Load songs for a specific page
|
||||
const loadPage = useCallback(async (page: number, search?: string, targetPlaylist?: string) => {
|
||||
console.log(`[${new Date().toISOString()}] loadPage called:`, { page, search, targetPlaylist });
|
||||
if (loadingRef.current) return;
|
||||
|
||||
const searchToUse = search ?? currentSearchQueryRef.current;
|
||||
@ -142,8 +141,6 @@ export const usePaginatedSongs = (options: UsePaginatedSongsOptions = {}) => {
|
||||
// Handle playlist changes
|
||||
useEffect(() => {
|
||||
if (previousPlaylistRef.current !== playlistName) {
|
||||
console.log(`[${new Date().toISOString()}] Playlist change detected:`, previousPlaylistRef.current, '->', playlistName);
|
||||
|
||||
// Update refs
|
||||
currentPlaylistRef.current = playlistName;
|
||||
currentSearchQueryRef.current = searchQuery;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user