mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +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
@@ -38,7 +38,6 @@ const playlist = usePlaylistStore();
|
||||
interface ScrollerItem {
|
||||
id: string | number;
|
||||
component: typeof Header | typeof SongItem;
|
||||
// props: Record<string, unknown>;
|
||||
size: number;
|
||||
}
|
||||
|
||||
@@ -58,8 +57,6 @@ const scrollerItems = computed(() => {
|
||||
props: {
|
||||
track: track,
|
||||
index: track.index + 1,
|
||||
isCurrent: queue.currenttrackhash === track.trackhash,
|
||||
isCurrentPlaying: queue.currenttrackhash === track.trackhash && queue.playing,
|
||||
},
|
||||
size: 64,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user