File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -53,15 +53,15 @@ const AppLayer = () => {
53
53
const appIsReady = useAppIsReady ( )
54
54
55
55
useEffect ( ( ) => {
56
+ document . querySelector ( "#app-skeleton" ) ?. remove ( )
57
+
56
58
const doneTime = Math . trunc ( performance . now ( ) )
57
59
window . analytics ?. capture ( "ui_render_init" , {
58
60
time : doneTime ,
59
61
} )
60
62
appLog ( "App is ready" , `${ doneTime } ms` )
61
63
62
64
applyAfterReadyCallbacks ( )
63
-
64
- document . querySelector ( "#app-skeleton" ) ?. remove ( )
65
65
} , [ appIsReady ] )
66
66
67
67
return appIsReady ? < Outlet /> : < AppSkeleton />
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ export function ErrorElement() {
20
20
: JSON . stringify ( error )
21
21
const stack = error instanceof Error ? error . stack : null
22
22
23
+ useEffect ( ( ) => {
24
+ document . querySelector ( "#app-skeleton" ) ?. remove ( )
25
+ } , [ ] )
26
+
23
27
useEffect ( ( ) => {
24
28
console . error ( "Error handled by React Router default ErrorBoundary:" , error )
25
29
You can’t perform that action at this time.
0 commit comments