mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
Refresh playlist list on delete (#134)
This commit is contained in:
parent
37e4940c2e
commit
be0792a5c7
10 changed files with 64 additions and 4 deletions
|
|
@ -22,6 +22,7 @@ const createItemData = memoize(
|
|||
route,
|
||||
handlePlayQueueAdd,
|
||||
handleFavorite,
|
||||
resetInfiniteLoaderCache,
|
||||
) => ({
|
||||
cardRows,
|
||||
columnCount,
|
||||
|
|
@ -34,6 +35,7 @@ const createItemData = memoize(
|
|||
itemHeight,
|
||||
itemType,
|
||||
itemWidth,
|
||||
resetInfiniteLoaderCache,
|
||||
route,
|
||||
}),
|
||||
);
|
||||
|
|
@ -59,6 +61,7 @@ export const VirtualGridWrapper = ({
|
|||
onScroll,
|
||||
height,
|
||||
width,
|
||||
resetInfiniteLoaderCache,
|
||||
...rest
|
||||
}: Omit<FixedSizeListProps, 'ref' | 'itemSize' | 'children' | 'height' | 'width'> & {
|
||||
cardRows: CardRow<Album | AlbumArtist | Artist>[];
|
||||
|
|
@ -77,6 +80,7 @@ export const VirtualGridWrapper = ({
|
|||
itemType: LibraryItem;
|
||||
itemWidth: number;
|
||||
refInstance: Ref<any>;
|
||||
resetInfiniteLoaderCache: () => void;
|
||||
route?: CardRoute;
|
||||
rowCount: number;
|
||||
width?: number;
|
||||
|
|
@ -94,6 +98,7 @@ export const VirtualGridWrapper = ({
|
|||
route,
|
||||
handlePlayQueueAdd,
|
||||
handleFavorite,
|
||||
resetInfiniteLoaderCache,
|
||||
);
|
||||
|
||||
const memoizedOnScroll = createScrollHandler(onScroll);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue