mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-20 19:04:23 +02:00
add more dynamic imports to optimize bundle
This commit is contained in:
@@ -2,8 +2,6 @@ import { useQueryClient, useSuspenseQuery } from '@tanstack/react-query';
|
||||
import { lazy, Suspense, useEffect, useMemo, useRef, useState } from 'react';
|
||||
import { useParams } from 'react-router';
|
||||
|
||||
import { PlaylistDetailSongListEditTable } from './playlist-detail-song-list-table';
|
||||
|
||||
import { ItemListHandle } from '/@/renderer/components/item-list/types';
|
||||
import { useListContext } from '/@/renderer/context/list-context';
|
||||
import { eventEmitter } from '/@/renderer/events/event-emitter';
|
||||
@@ -21,6 +19,14 @@ const PlaylistDetailSongListTable = lazy(() =>
|
||||
),
|
||||
);
|
||||
|
||||
const PlaylistDetailSongListEditTable = lazy(() =>
|
||||
import('/@/renderer/features/playlists/components/playlist-detail-song-list-table').then(
|
||||
(module) => ({
|
||||
default: module.PlaylistDetailSongListEditTable,
|
||||
}),
|
||||
),
|
||||
);
|
||||
|
||||
const PlaylistDetailSongListGrid = lazy(() =>
|
||||
import('/@/renderer/features/playlists/components/playlist-detail-song-list-grid').then(
|
||||
(module) => ({
|
||||
|
||||
Reference in New Issue
Block a user