Skip to content

Commit ff726e4

Browse files
authored
fix(shell): provide hydrateFallback element (#575)
1 parent e69a584 commit ff726e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/shell/src/shell-routes.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { optionsSetting } from '@workspace/db-react/options-setting'
22
import { queryClient } from '@workspace/db-react/query-client'
33
import { UiErrorBoundary } from '@workspace/ui/components/ui-error-boundary'
4+
import { UiLoaderFull } from '@workspace/ui/components/ui-loader-full'
45
import { UiNotFound } from '@workspace/ui/components/ui-not-found'
56
import { lazy } from 'react'
67
import { createHashRouter, Navigate, type RouteObject, RouterProvider } from 'react-router'
@@ -21,6 +22,7 @@ function createRouter({ browser, context }: ShellFeatureProps) {
2122
{
2223
children: context === 'Onboarding' ? getOnboardingRoutes() : getAppRoutes({ browser, context }),
2324
errorElement: <UiErrorBoundary />,
25+
hydrateFallbackElement: <UiLoaderFull />,
2426
id: 'root',
2527
loader: rootRouteLoader(context),
2628
shouldRevalidate: () => {

0 commit comments

Comments
 (0)