Add error logging and Suspense component
Added error logging to the i18n client initialization to better handle and trace errors. Introduced React's Suspense component in `root-providers.tsx` to provide a fallback UI in case a component within the tree is not yet ready to render.
This commit is contained in:
@@ -43,6 +43,7 @@ export function initializeI18nClient(
|
||||
},
|
||||
(err) => {
|
||||
if (err) {
|
||||
console.error('Error initializing i18n client', err);
|
||||
return reject(err);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user