Skip to content

Commit

Permalink
remove lazyLoad in Endpointlist
Browse files Browse the repository at this point in the history
  • Loading branch information
yomybaby committed Feb 21, 2025
1 parent 164665a commit ef6e4f5
Show file tree
Hide file tree
Showing 4 changed files with 300 additions and 358 deletions.
19 changes: 14 additions & 5 deletions react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,20 @@ const router = createBrowserRouter([
children: [
{
path: '',
element: (
<BAIErrorBoundary>
<ServingPage />
</BAIErrorBoundary>
),
Component: () => {
const { t } = useTranslation();
return (
<BAIErrorBoundary>
<Suspense
fallback={
<BAICard title={t('webui.menu.Serving')} loading />
}
>
<ServingPage />
</Suspense>
</BAIErrorBoundary>
);
},
},
{
path: '/serving/:serviceId',
Expand Down
Loading

0 comments on commit ef6e4f5

Please sign in to comment.