optimize list refresh functions

This commit is contained in:
jeffvli
2025-11-24 22:46:23 -08:00
parent d3132ad570
commit e78a46ab24
15 changed files with 84 additions and 16 deletions
@@ -46,6 +46,7 @@ export const GenreListPaginatedGrid = forwardRef<any, GenreListPaginatedGridProp
const { data, pageCount, totalItemCount } = useItemListPaginatedLoader({
currentPage,
eventKey: ItemListKey.GENRE,
itemsPerPage,
itemType: LibraryItem.GENRE,
listCountQuery,
@@ -54,6 +54,7 @@ export const GenreListPaginatedTable = forwardRef<any, GenreListPaginatedTablePr
const { data, pageCount, totalItemCount } = useItemListPaginatedLoader({
currentPage,
eventKey: ItemListKey.GENRE,
itemsPerPage,
itemType: LibraryItem.GENRE,
listCountQuery,
@@ -1,5 +1,5 @@
import { useMemo, useState } from 'react';
import { useLocation, useParams } from 'react-router';
import { useParams } from 'react-router';
import { ListContext } from '/@/renderer/context/list-context';
import { useGenreList } from '/@/renderer/features/genres/api/genres-api';
@@ -30,9 +30,6 @@ const GenreDetailRoute = () => {
return genres?.items.find((g) => g.id === genreId)?.name || '—';
}, [genreId, genres]);
const location = useLocation();
console.log('location', location.pathname);
return (
<AnimatedPage>
<ListContext.Provider value={providerValue}>