1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix home page loading with lazy

This commit is contained in:
Bill Thornton 2024-07-16 17:05:32 -04:00
parent 175b2d6c85
commit 255d982687
5 changed files with 18 additions and 70 deletions

View file

@ -1,12 +1,7 @@
import loadable from '@loadable/component';
import { AsyncRoute, AsyncRouteType } from '../../../../components/router/AsyncRoute';
export const ASYNC_USER_ROUTES: AsyncRoute[] = [
{
path: 'home.html',
// FIXME: The use of tab manager for the home screen breaks when using lazy route handling
Component: loadable(() => import('../home'))
},
{ path: 'home.html', page: 'home', type: AsyncRouteType.Experimental },
{ path: 'quickconnect', page: 'quickConnect' },
{ path: 'search.html', page: 'search' },
{ path: 'userprofile.html', page: 'user/userprofile' },