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;
|
currentSearchQueryRef.current = searchQuery;
|
||||||
|
|
||||||
// Clear state for instant visual feedback
|
// Clear state for instant visual feedback
|
||||||
loadingRef.current = true;
|
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
setSongs([]);
|
setSongs([]);
|
||||||
setTotalSongs(0);
|
setTotalSongs(0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user