fix(frontend): avoid blocking fetch by not setting loadingRef in immediate switch
This commit is contained in:
parent
ebc6f31d32
commit
4bab1ae3a2
@ -168,7 +168,6 @@ export const usePaginatedSongs = (options: UsePaginatedSongsOptions = {}) => {
|
||||
currentSearchQueryRef.current = searchQuery;
|
||||
|
||||
// Clear state for instant visual feedback
|
||||
loadingRef.current = true;
|
||||
setLoading(true);
|
||||
setSongs([]);
|
||||
setTotalSongs(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user