From 66de3dcf048bd9e74253148890a22465071a80b6 Mon Sep 17 00:00:00 2001 From: Ardeman Date: Wed, 19 Mar 2025 18:18:00 +0800 Subject: [PATCH] feat: enhance loading and error boundary components with improved styling and messaging --- app/routes/_news._index.tsx | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/app/routes/_news._index.tsx b/app/routes/_news._index.tsx index 2189320..fafb7bb 100644 --- a/app/routes/_news._index.tsx +++ b/app/routes/_news._index.tsx @@ -69,9 +69,16 @@ clientLoader.hydrate = true as const export const HydrateFallback = () => { return ( -
- {' '} - Loading... +
+

+ Loading... +

+

+ Please wait while we load the content. +

+
+
+
) @@ -95,10 +102,16 @@ export const ErrorBoundary = ({ error }: Route.ErrorBoundaryProps) => { return ( -

{message}

-

{details}

+
+

+ {message} +

+

+ {details} +

+
{stack && ( -
+        
           {stack}
         
)}