mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
Use memoized carousel component for pages
This commit is contained in:
parent
74384639de
commit
a8dfc7bcd6
3 changed files with 148 additions and 145 deletions
|
|
@ -7,7 +7,7 @@ import { useRecentlyPlayed } from '/@/renderer/features/home/queries/recently-pl
|
|||
import { AnimatedPage, LibraryHeaderBar } from '/@/renderer/features/shared';
|
||||
import { AppRoute } from '/@/renderer/router/routes';
|
||||
import { useCurrentServer, useWindowSettings } from '/@/renderer/store';
|
||||
import { SwiperGridCarousel } from '/@/renderer/components/grid-carousel';
|
||||
import { MemoizedSwiperGridCarousel } from '/@/renderer/components/grid-carousel';
|
||||
import { Platform } from '/@/renderer/types';
|
||||
|
||||
const HomeRoute = () => {
|
||||
|
|
@ -161,7 +161,7 @@ const HomeRoute = () => {
|
|||
return carousel;
|
||||
})
|
||||
.map((carousel) => (
|
||||
<SwiperGridCarousel
|
||||
<MemoizedSwiperGridCarousel
|
||||
key={`carousel-${carousel.uniqueId}`}
|
||||
cardRows={[
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue