Skip to content

🤯 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.

385 B
Raw Blame
'use client';

import { lazy, Suspense } from 'react';

// Lazy load the CommandMenu component with React lazy
// This splits the CommandMenu code into a separate chunk that only loads when needed
const CmdkComponent = lazy(() => import('@/features/CommandMenu'));

const CmdkLazy = () => (
  <Suspense fallback={null}>
    <CmdkComponent />
  </Suspense>
);

export default CmdkLazy;