mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
fix slow folder page
~ stabilize props: move isCurrent check to inside SongItem component
This commit is contained in:
committed by
Mungai Njoroge
parent
90dd1a1fe8
commit
0b24974a63
@@ -5,8 +5,5 @@ export default function createTrackProps(track: Track) {
|
||||
return {
|
||||
track,
|
||||
index: track.index + 1,
|
||||
isCurrent: queue().currenttrackhash === track.trackhash,
|
||||
isCurrentPlaying:
|
||||
queue().currenttrackhash === track.trackhash && queue().playing,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user