π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
π fix(workspace): stop stacking home skeletons, gate page skeletons behind 200ms (#19155)
Inneid25b91bcd052
diff --git a/src/components/Skeleton/Delayed.tsx b/src/components/Skeleton/Delayed.tsxnew file mode 100644index 00000000000..e99e1b9e343--- /dev/null+++ b/src/components/Skeleton/Delayed.tsx@@ -0,0 +1,36 @@+'use client';++import { type ReactNode, useEffect, useState } from 'react';++/**+ * Matches `BOOT_SHELL_DELAY`: below this, a placeholder is on screen for less+ * time than it takes to read as one, so it registers as a flicker between two+ * layouts rather than as loading.+ */+export const FALLBACK_DELAY = 200;++interface DelayedFallbackProps {+ children: ReactNode;+ delay?: number;+}++/**+ * Holds a page-level skeleton back until the wait is long enough to be worth+ * showing. A segment that resolves faster renders nothing at all β the+ * previous screen simply stays until the next one paints.+ */+const DelayedFallback = ({ children, delay = FALLBACK_DELAY }: DelayedFallbackProps) => {+ const [elapsed, setElapsed] = useState(false);++ useEffect(() => {+ const timer = setTimeout(() => setElapsed(true), delay);+ return () => clearTimeout(timer);+ }, [delay]);++ return elapsed ? children : null;+};++/** Wraps a route fallback element so it inherits the same 200ms gate. */+export const delayed = (fallback: ReactNode) => <DelayedFallback>{fallback}</DelayedFallback>;++export default DelayedFallback;diff --git a/src/components/Skeleton/Home.tsx b/src/components/Skeleton/Home.tsxdeleted file mode 100644index 07da0ac0cbe..00000000000--- a/src/components/Skeleton/Home.tsx+++ /dev/null@@ -1,115 +0,0 @@-'use client';--import { Flexbox } from '@lobehub/ui';-import { createStaticStyles, cssVar } from 'antd-style';--import SkeletonBar from './Bar';--const styles = createStaticStyles(({ css }) => ({- composer: css`- overflow: hidden;-- height: 106px;- border: 1px solid ${cssVar.colorFill};- border-radius: ${cssVar.borderRadiusLG};-- background: ${cssVar.colorBgElevated};- `,- grid: css`- display: grid;- grid-template-columns: minmax(0, 1fr) 394px;- gap: 24px 28px;- width: 100%;-- @media (width <= 1100px) {- grid-template-columns: 1fr;- }- `,- rail: css`- display: flex;- flex-direction: column;- gap: 12px;- padding-inline-end: 14px;-- @media (width <= 1100px) {- display: none;- }- `,- railCard: css`- border-radius: ${cssVar.borderRadiusLG};- background: ${cssVar.colorFillQuaternary};- `,- row: css`- border-radius: ${cssVar.borderRadiusLG};- background: ${cssVar.colorFillQuaternary};- `,-}));--const ComposerSkeleton = () => (- <Flexbox className={styles.composer}>- <Flexbox flex={1} paddingBlock={'14px 8px'} paddingInline={14}>- <SkeletonBar height={14} width={'32%'} />- </Flexbox>- <Flexbox horizontal align={'center'} height={44} justify={'space-between'} paddingInline={10}>- <Flexbox horizontal gap={6}>- <SkeletonBar height={28} radius={'50%'} width={28} />- <SkeletonBar height={28} radius={'50%'} width={28} />- </Flexbox>- <SkeletonBar height={32} radius={16} width={64} />- </Flexbox>- </Flexbox>-);--const HomeSkeleton = () => (- <Flexbox- aria-busy- flex={1}- height={'100%'}- style={{ overflow: 'hidden', paddingBlock: '32px 24px', paddingInline: 24 }}- width={'100%'}- >- <Flexbox style={{ marginInline: 'auto', maxWidth: 1240 }} width={'100%'}>- <div className={styles.grid}>- <Flexbox gap={16} style={{ minWidth: 0 }}>- <Flexbox gap={10} paddingBlock={'24px 8px'}>- <SkeletonBar height={26} width={'38%'} />- </Flexbox>- <ComposerSkeleton />- <Flexbox gap={8} paddingBlock={12}>- <SkeletonBar height={14} width={96} />- {Array.from({ length: 3 }).map((_, index) => (- <Flexbox- horizontal- align={'center'}- className={styles.row}- gap={10}- key={index}- padding={'12px 14px'}- >- <SkeletonBar height={24} radius={'50%'} width={24} />- <Flexbox flex={1} gap={6}>- <SkeletonBar height={13} width={`${32 + (index % 3) * 14}%`} />- <SkeletonBar height={11} width={`${52 + (index % 2) * 20}%`} />- </Flexbox>- </Flexbox>- ))}- </Flexbox>- </Flexbox>- <div className={styles.rail}>- <Flexbox className={styles.railCard} gap={10} padding={16}>- <SkeletonBar height={14} width={120} />- <SkeletonBar height={12} width={'82%'} />- <SkeletonBar height={12} width={'64%'} />- </Flexbox>- <Flexbox className={styles.railCard} gap={10} padding={16}>- <SkeletonBar height={14} width={96} />- <SkeletonBar height={12} width={'74%'} />- <SkeletonBar height={12} width={'58%'} />- </Flexbox>- </div>- </div>- </Flexbox>- </Flexbox>-);--export default HomeSkeleton;diff --git a/src/components/Skeleton/RouteSegment.tsx b/src/components/Skeleton/RouteSegment.tsxindex 97fd2b9181f..0356a63b3b5 100644--- a/src/components/Skeleton/RouteSegment.tsx+++ b/src/components/Skeleton/RouteSegment.tsx@@ -7,6 +7,7 @@ import { useRouteSkeleton } from '@/spa/router/useRouteSkeleton';import AppsSkeleton from './Apps';import ConversationLayoutSkeleton from './Conversation/Layout';+import DelayedFallback from './Delayed';import MemorySkeleton from './Memory';import SettingsPageSkeleton from './Settings/Page';import SurfaceSkeleton, { type SurfaceSkeletonVariant } from './Surface';@@ -36,7 +37,7 @@ const isConversationPath = (pathname: string) => {return segments.length === 3 && segments[2].startsWith('tpc_');};-const RouteSegmentSkeleton = () => {+const RouteSegmentContent = () => {const Skeleton = useRouteSkeleton();const chrome = useRouteSkeletonChrome();const { pathname } = useLocation();@@ -52,4 +53,10 @@ const RouteSegmentSkeleton = () => {return <SurfaceSkeleton header={chrome !== 'body'} variant={getSurfaceVariant(pathname)} />;};+const RouteSegmentSkeleton = () => (+ <DelayedFallback>+ <RouteSegmentContent />+ </DelayedFallback>+);+export default RouteSegmentSkeleton;diff --git a/src/components/Skeleton/index.ts b/src/components/Skeleton/index.tsindex 78a5cfc34ea..361737c2f9c 100644--- a/src/components/Skeleton/index.ts+++ b/src/components/Skeleton/index.ts@@ -5,7 +5,6 @@ export { default as CommunityListSkeleton, type CommunityListSkeletonProps } froexport { default as ConversationLayoutSkeleton } from './Conversation/Layout';export { default as ConversationListSkeleton } from './Conversation/List';export { default as ConversationSegmentSkeleton } from './Conversation/Segment';-export { default as HomeSkeleton } from './Home';export { default as NavPanelSkeletonList } from './NavPanel/List';export {DEFAULT_NAV_SKELETON_SHAPE,diff --git a/src/features/Workspace/WorkspaceSlugBoundary.tsx b/src/features/Workspace/WorkspaceSlugBoundary.tsxindex 5b917191659..3f33a97ab34 100644--- a/src/features/Workspace/WorkspaceSlugBoundary.tsx+++ b/src/features/Workspace/WorkspaceSlugBoundary.tsx@@ -6,6 +6,8 @@ import { type FC } from 'react';import { useTranslation } from 'react-i18next';import { Outlet, useNavigate } from 'react-router';+import RouteSegmentSkeleton from '@/components/Skeleton/RouteSegment';+import { useWorkspaceFromSlug } from './useWorkspaceFromSlug';/**@@ -13,7 +15,8 @@ import { useWorkspaceFromSlug } from './useWorkspaceFromSlug';** - Calls `useWorkspaceFromSlug` to resolve the slug β status.* - Renders a 404-style empty state when the slug doesn't match any workspace.- * - Renders `<Outlet />` when the workspace is found (or still loading).+ * - Renders the route's own skeleton while the workspace list is in flight.+ * - Renders `<Outlet />` when the workspace is found.** A billing-inactive workspace is intentionally NOT blocked here β the member* should still be able to browse shared content. The "subscription inactive"@@ -25,9 +28,10 @@ const WorkspaceSlugBoundary: FC = () => {const navigate = useNavigate();const result = useWorkspaceFromSlug();- // Workspaces are still being fetched β render nothing so the parent layout- // spinner shows through instead of flashing a false 404.- if (result.status === 'loading') return null;+ // Workspaces are still being fetched. The parent layout has already resolved+ // by now, so returning null would blank the content area between the lazy+ // chunk's skeleton and the page's own β keep the same skeleton on screen.+ if (result.status === 'loading') return <RouteSegmentSkeleton />;if (result.status === 'not-found') {return (diff --git a/src/features/Workspace/routeMeta.test.tsx b/src/features/Workspace/routeMeta.test.tsxindex 28c2a0075dd..59e97910e5d 100644--- a/src/features/Workspace/routeMeta.test.tsx+++ b/src/features/Workspace/routeMeta.test.tsx@@ -56,6 +56,13 @@ describe('workspaceHomeRouteMeta', () => {});});+ it('renders no outlet skeleton β Home never loads inside the outlet', () => {+ const Skeleton = workspaceHomeRouteMeta.Skeleton!;+ const { container } = render(<Skeleton />);++ expect(container).toBeEmptyDOMElement();+ });+it('returns no dynamic meta while the workspace slug is unresolved', async () => {const onResolve = renderDynamicMeta('acme');diff --git a/src/features/Workspace/routeMeta.ts b/src/features/Workspace/routeMeta.tsindex e3fefdd8019..22ea6fb72be 100644--- a/src/features/Workspace/routeMeta.ts+++ b/src/features/Workspace/routeMeta.ts@@ -1,10 +1,9 @@'use client';import { useWorkspaces } from '@/business/client/hooks/useWorkspaces';-import HomeSkeleton from '@/components/Skeleton/Home';import { usePublishDynamicRouteMeta } from '@/features/RouteMeta/usePublishDynamicRouteMeta';import type { DynamicRouteMetaProps } from '@/spa/router/routeMeta';-import { routeMeta } from '@/spa/router/routeMeta';+import { NoRouteSkeleton, routeMeta } from '@/spa/router/routeMeta';const WorkspaceHomeDynamicMeta = ({ onResolve, params }: DynamicRouteMetaProps) => {const workspaces = useWorkspaces();@@ -25,6 +24,9 @@ const WorkspaceHomeDynamicMeta = ({ onResolve, params }: DynamicRouteMetaProps)export const workspaceHomeRouteMeta = routeMeta({DynamicMeta: WorkspaceHomeDynamicMeta,- Skeleton: HomeSkeleton,+ // Home is mounted by the layout on web and as a static per-tab element on+ // Electron β either way it never loads inside this outlet, so an outlet+ // skeleton only ever stacks a second home on top of the real one.+ Skeleton: NoRouteSkeleton,titleKey: 'navigation.home',});diff --git a/src/routes/(main)/agent/features/Conversation/index.tsx b/src/routes/(main)/agent/features/Conversation/index.tsxindex 500a1d80d5c..8989a79b4c8 100644--- a/src/routes/(main)/agent/features/Conversation/index.tsx+++ b/src/routes/(main)/agent/features/Conversation/index.tsx@@ -3,6 +3,7 @@ import React, { memo, Suspense } from 'react';import DragUploadZone, { useUploadFiles } from '@/components/DragUploadZone';import ConversationSegmentSkeleton from '@/components/Skeleton/Conversation/Segment';+import { delayed } from '@/components/Skeleton/Delayed';import { useAgentContext } from '@/features/Conversation/useAgentContext';import { useLocalPathReference } from '@/features/Conversation/useLocalPathReference';import { useResourceAccess } from '@/features/ResourcePermission/useResourceAccess';@@ -46,7 +47,7 @@ const ChatConversation = memo(() => {);return (- <Suspense fallback={<ConversationSegmentSkeleton />}>+ <Suspense fallback={delayed(<ConversationSegmentSkeleton />)}>{canUseResource ? (<DragUploadZoneenableLocalPathReference={enableLocalPathReference}diff --git a/src/routes/(main)/agent/profile/index.tsx b/src/routes/(main)/agent/profile/index.tsxindex 561f7603cc1..8842c016099 100644--- a/src/routes/(main)/agent/profile/index.tsx+++ b/src/routes/(main)/agent/profile/index.tsx@@ -6,6 +6,7 @@ import { memo, Suspense } from 'react';import { useParams } from 'react-router';import AsyncBoundary from '@/components/AsyncBoundary';+import { delayed } from '@/components/Skeleton/Delayed';import ProfileSkeleton from '@/components/Skeleton/Profile';import AgentBuilder from '@/features/AgentBuilder';import ResourceConfigAccessGate from '@/features/ResourcePermission/ResourceConfigAccessGate';@@ -103,7 +104,7 @@ const AgentProfile: FC = () => {const { aid } = useParams<{ aid: string }>();return (- <Suspense fallback={<ProfileSkeleton />}>+ <Suspense fallback={delayed(<ProfileSkeleton />)}><ResourceConfigAccessGateloading={<ProfileSkeleton />}redirectPath={`/agent/${aid ?? ''}`}diff --git a/src/routes/(main)/group/profile/index.tsx b/src/routes/(main)/group/profile/index.tsxindex ece7f272762..2d44549b5e9 100644--- a/src/routes/(main)/group/profile/index.tsx+++ b/src/routes/(main)/group/profile/index.tsx@@ -5,6 +5,7 @@ import { type FC } from 'react';import { memo, Suspense } from 'react';import { useParams } from 'react-router';+import { delayed } from '@/components/Skeleton/Delayed';import ProfileSkeleton from '@/components/Skeleton/Profile';import ResourceConfigAccessGate from '@/features/ResourcePermission/ResourceConfigAccessGate';import WideScreenContainer from '@/features/WideScreenContainer';@@ -55,7 +56,7 @@ const GroupProfile: FC = () => {const { gid } = useParams<{ gid: string }>();return (- <Suspense fallback={<ProfileSkeleton variant={'group'} />}>+ <Suspense fallback={delayed(<ProfileSkeleton variant={'group'} />)}><ResourceConfigAccessGateloading={<ProfileSkeleton variant={'group'} />}redirectPath={`/group/${gid ?? ''}`}diff --git a/src/routes/(main)/page/[id]/index.tsx b/src/routes/(main)/page/[id]/index.tsxindex 11e02f43d13..1de42296760 100644--- a/src/routes/(main)/page/[id]/index.tsx+++ b/src/routes/(main)/page/[id]/index.tsx@@ -5,6 +5,7 @@ import { memo, Suspense } from 'react';import { useParams } from 'react-router';import { createStoreUpdater } from 'zustand-utils';+import { delayed } from '@/components/Skeleton/Delayed';import SurfaceSkeleton from '@/components/Skeleton/Surface';import PageExplorer from '@/features/PageExplorer';import { usePageStore } from '@/store/page';@@ -23,7 +24,7 @@ const PagesPage = memo(() => {storeUpdater('selectedPageId', pageId);return (- <Suspense fallback={<SurfaceSkeleton variant={'editor'} />}>+ <Suspense fallback={delayed(<SurfaceSkeleton variant={'editor'} />)}><PageExplorer pageId={pageId} /></Suspense>);diff --git a/src/routes/(main)/page/index.tsx b/src/routes/(main)/page/index.tsxindex ad7b1552fcc..c6f9f8c4fd8 100644--- a/src/routes/(main)/page/index.tsx+++ b/src/routes/(main)/page/index.tsx@@ -2,12 +2,13 @@import { Suspense } from 'react';+import { delayed } from '@/components/Skeleton/Delayed';import SurfaceSkeleton from '@/components/Skeleton/Surface';import PageExplorerPlaceholder from '@/features/PageExplorer/PageExplorerPlaceholder';const PagesPage = () => {return (- <Suspense fallback={<SurfaceSkeleton variant={'editor'} />}>+ <Suspense fallback={delayed(<SurfaceSkeleton variant={'editor'} />)}><PageExplorerPlaceholder /></Suspense>);diff --git a/src/spa/router/desktopRouter.shared.tsx b/src/spa/router/desktopRouter.shared.tsxindex e4949633722..623fbb380ba 100644--- a/src/spa/router/desktopRouter.shared.tsx+++ b/src/spa/router/desktopRouter.shared.tsx@@ -36,8 +36,8 @@ import AppsSkeleton from '@/components/Skeleton/Apps';import CommunityListSkeleton from '@/components/Skeleton/CommunityList';import ConversationLayoutSkeleton from '@/components/Skeleton/Conversation/Layout';import ConversationSegmentSkeleton from '@/components/Skeleton/Conversation/Segment';+import { delayed } from '@/components/Skeleton/Delayed';import GenerationSkeleton from '@/components/Skeleton/Generation';-import HomeSkeleton from '@/components/Skeleton/Home';import MemorySkeleton from '@/components/Skeleton/Memory';import ResourceHomeSkeleton from '@/components/Skeleton/ResourceHome';import RouteSegmentSkeleton from '@/components/Skeleton/RouteSegment';@@ -72,7 +72,7 @@ import {} from '@/routes/(main)/group/features/routeMeta';import AppShellSkeleton, { APP_SHELL_FALLBACK_ID } from '@/spa/BootShell/AppShellSkeleton';import { loadRouteWithBuiltinToolSurfaces } from '@/spa/initialize/toolSurfaces';-import { routeMeta, type RouteSkeletonProps } from '@/spa/router/routeMeta';+import { NoRouteSkeleton, routeMeta, type RouteSkeletonProps } from '@/spa/router/routeMeta';import { SettingsTabs } from '@/store/global/initialState';import { dynamicElement, dynamicLayout, ErrorBoundary, redirectElement } from '@/utils/router';@@ -87,13 +87,13 @@ export const ResourceCategorySkeleton = (props: RouteSkeletonProps) => (const agentChatElement = dynamicElement(() => loadRouteWithBuiltinToolSurfaces(() => import('@/routes/(main)/agent')),'Desktop > Chat',- { fallback: <ConversationSegmentSkeleton />, preloadId: 'agent' },+ { fallback: delayed(<ConversationSegmentSkeleton />), preloadId: 'agent' },);const groupChatElement = dynamicElement(() => loadRouteWithBuiltinToolSurfaces(() => import('@/routes/(main)/group')),'Desktop > Agent Group',- { fallback: <ConversationLayoutSkeleton />, preloadId: 'group' },+ { fallback: delayed(<ConversationLayoutSkeleton />), preloadId: 'group' },);const resourceCategoryRoutes: RouteObject[] = [@@ -157,7 +157,7 @@ export const sharedMainAreaChildren: RouteObject[] = [element: dynamicLayout(() => import('@/routes/(main)/agent/(chat)/_layout'),'Desktop > Chat > ChatLayout',- { fallback: <ConversationLayoutSkeleton />, preloadId: 'agent' },+ { fallback: delayed(<ConversationLayoutSkeleton />), preloadId: 'agent' },),},{@@ -362,7 +362,7 @@ export const sharedMainAreaChildren: RouteObject[] = [shareElement={dynamicElement(() => import('@/features/AgentShareVisitor/Page'),'Desktop > Share > Agent',- { fallback: <ConversationLayoutSkeleton /> },+ { fallback: delayed(<ConversationLayoutSkeleton />) },)}/>),@@ -1474,7 +1474,7 @@ const createMainAreaChildrenDefinition = (options: MainAreaRouteOptions = {}): Rhandle: {meta: routeMeta({icon: HomeIcon,- Skeleton: HomeSkeleton,+ Skeleton: NoRouteSkeleton,tabTitleKey: 'navigation.home',titleKey: 'navigation.home',}),diff --git a/src/spa/router/desktopRouter.sync.test.tsx b/src/spa/router/desktopRouter.sync.test.tsxindex 07f90666bf9..35066709c94 100644--- a/src/spa/router/desktopRouter.sync.test.tsx+++ b/src/spa/router/desktopRouter.sync.test.tsx@@ -10,6 +10,7 @@ import BrandTextLoading from '@/components/Loading/BrandTextLoading';import AppsSkeleton from '@/components/Skeleton/Apps';import ConversationLayoutSkeleton from '@/components/Skeleton/Conversation/Layout';import ConversationSegmentSkeleton from '@/components/Skeleton/Conversation/Segment';+import DelayedFallback from '@/components/Skeleton/Delayed';import GoalSkeleton from '@/components/Skeleton/Goal';import GoalDetailSkeleton from '@/components/Skeleton/GoalDetail';import MemorySkeleton from '@/components/Skeleton/Memory';@@ -313,12 +314,21 @@ describe('desktop router shared definition', () => {// Suspense, which always beats an outlet-level boundary β so without the// rewrite the brand wordmark reappears inside the container for 1β2s on a// cold deep link, right after the boot shell hands over.+ // Page-level fallbacks sit behind the 200ms gate, so the skeleton under test+ // is the gate's child rather than the fallback element itself.+ const fallbackType = (fallback?: ReactElement): unknown => {+ if (!fallback) return undefined;+ if (fallback.type !== DelayedFallback) return fallback.type;++ return (fallback.props as { children: ReactElement }).children.type;+ };+const collectFallbacks = (list: RouteObject[]): unknown[] => {const fallbacks: unknown[] = [];const walk = (routes: RouteObject[]) => {for (const route of routes) {const element = route.element as ReactElement<{ fallback?: ReactElement }> | undefined;- if (element?.props?.fallback) fallbacks.push(element.props.fallback.type);+ if (element?.props?.fallback) fallbacks.push(fallbackType(element.props.fallback));if (route.children) walk(route.children);}};@@ -359,10 +369,11 @@ describe('desktop router shared definition', () => {] as const) {const matches = matchRoutes(createRuntimeRoutes(pathname), pathname);const fallbackTypes = matches- ?.map(- ({ route }) =>+ ?.map(({ route }) =>+ fallbackType((route.element as ReactElement<{ fallback?: ReactElement }> | undefined)?.props- .fallback?.type,+ .fallback,+ ),).filter(Boolean);diff --git a/src/spa/router/mobileRouter.config.tsx b/src/spa/router/mobileRouter.config.tsxindex 65473e56863..e18ade83b61 100644--- a/src/spa/router/mobileRouter.config.tsx+++ b/src/spa/router/mobileRouter.config.tsx@@ -8,6 +8,7 @@ import {} from '@/business/client/BusinessMobileRoutes';import AppsSkeleton from '@/components/Skeleton/Apps';import ConversationLayoutSkeleton from '@/components/Skeleton/Conversation/Layout';+import { delayed } from '@/components/Skeleton/Delayed';import { acceptanceRouteMeta } from '@/features/Acceptance/routeMeta';import AgentRouteSwitch from '@/features/AgentRoute/AgentRouteSwitch';import AgentShareLegacyRedirect from '@/features/AgentShareVisitor/LegacyRedirect';@@ -73,7 +74,7 @@ export const sharedMainAreaChildren: RouteObject[] = [shareElement={dynamicElement(() => import('@/features/AgentShareVisitor/Page'),'Mobile > Share > Agent',- { fallback: <ConversationLayoutSkeleton /> },+ { fallback: delayed(<ConversationLayoutSkeleton />) },)}/>),@@ -311,7 +312,7 @@ export const mobileRoutes: RouteObject[] = [// Apps page (personal-only β never mirrored under /:workspaceSlug){element: dynamicElement(() => import('@/routes/(main)/apps'), 'Mobile > Apps', {- fallback: <AppsSkeleton />,+ fallback: delayed(<AppsSkeleton />),}),errorElement: <ErrorBoundary />,path: 'apps',diff --git a/src/spa/router/routeMeta.ts b/src/spa/router/routeMeta.tsindex 35ee6a25f23..90cc076b503 100644--- a/src/spa/router/routeMeta.ts+++ b/src/spa/router/routeMeta.ts@@ -43,6 +43,14 @@ export interface ResolvedRouteMeta {title: string;}+/**+ * For a route whose surface is mounted outside the router outlet, or that+ * paints fast enough that any placeholder is pure flicker. Declared rather than+ * omitted: an absent `Skeleton` falls through to `RouteSegmentSkeleton`'s+ * path heuristics, which would guess a generic surface shape instead.+ */+export const NoRouteSkeleton = () => null;+export const routeMeta = (meta: RouteMeta): RouteMeta => meta;export const getRouteMetaFromHandle = (handle: unknown): RouteMeta | undefined => {