Skip to content

A local-first personal finance app

[AI] Complete mobile error boundaries (#8573)

Russlan Ramdowar04f5cc66d528
diff --git a/packages/desktop-client/src/components/FinancesApp.tsx b/packages/desktop-client/src/components/FinancesApp.tsx
index 84176384a3..12019d70f4 100644
--- a/packages/desktop-client/src/components/FinancesApp.tsx
+++ b/packages/desktop-client/src/components/FinancesApp.tsx
@@ -389,7 +389,14 @@ export function FinancesApp() {
<Route
path="/accounts"
- element={<NarrowAlternate name="Accounts" />}
+ element={
+ <ErrorBoundary
+ FallbackComponent={FeatureErrorFallback}
+ resetKeys={[location.pathname]}
+ >
+ <NarrowAlternate name="Accounts" />
+ </ErrorBoundary>
+ }
/>
<Route
@@ -420,7 +427,14 @@ export function FinancesApp() {
<Route
path="/categories/:id"
- element={<NarrowAlternate name="Category" />}
+ element={
+ <ErrorBoundary
+ FallbackComponent={FeatureErrorFallback}
+ resetKeys={[location.pathname]}
+ >
+ <NarrowAlternate name="Category" />
+ </ErrorBoundary>
+ }
/>
{multiuserEnabled && (
<Route
diff --git a/upcoming-release-notes/complete-mobile-error-boundaries.md b/upcoming-release-notes/complete-mobile-error-boundaries.md
new file mode 100644
index 0000000000..bf3b39194e
--- /dev/null
+++ b/upcoming-release-notes/complete-mobile-error-boundaries.md
@@ -0,0 +1,6 @@
+---
+category: Maintenance
+authors: [russlan23]
+---
+
+Wrap the mobile accounts list and category transactions pages in scoped error boundaries, so rendering errors show a recoverable fallback instead of crashing the whole app.