fix: add scoped ErrorBoundaries to mobile schedules, payees, and bank sync pages (#8547)

This commit is contained in:
BasilTh
2026-07-22 17:20:35 +00:00
committed by GitHub
parent 3ea01f9eff
commit 71d802e91f
2 changed files with 54 additions and 12 deletions
@@ -277,27 +277,51 @@ export function FinancesApp() {
<Route
path="/schedules"
element={<NarrowAlternate name="Schedules" />}
element={
<ErrorBoundary
FallbackComponent={FeatureErrorFallback}
resetKeys={[location.pathname]}
>
<NarrowAlternate name="Schedules" />
</ErrorBoundary>
}
/>
<Route
path="/schedules/:id"
element={
<WideNotSupported>
<NarrowAlternate name="ScheduleEdit" />
</WideNotSupported>
<ErrorBoundary
FallbackComponent={FeatureErrorFallback}
resetKeys={[location.pathname]}
>
<WideNotSupported>
<NarrowAlternate name="ScheduleEdit" />
</WideNotSupported>
</ErrorBoundary>
}
/>
<Route
path="/payees"
element={<NarrowAlternate name="Payees" />}
element={
<ErrorBoundary
FallbackComponent={FeatureErrorFallback}
resetKeys={[location.pathname]}
>
<NarrowAlternate name="Payees" />
</ErrorBoundary>
}
/>
<Route
path="/payees/:id"
element={
<WideNotSupported>
<NarrowAlternate name="PayeeEdit" />
</WideNotSupported>
<ErrorBoundary
FallbackComponent={FeatureErrorFallback}
resetKeys={[location.pathname]}
>
<WideNotSupported>
<NarrowAlternate name="PayeeEdit" />
</WideNotSupported>
</ErrorBoundary>
}
/>
<Route
@@ -324,14 +348,26 @@ export function FinancesApp() {
/>
<Route
path="/bank-sync"
element={<NarrowAlternate name="BankSync" />}
element={
<ErrorBoundary
FallbackComponent={FeatureErrorFallback}
resetKeys={[location.pathname]}
>
<NarrowAlternate name="BankSync" />
</ErrorBoundary>
}
/>
<Route
path="/bank-sync/account/:accountId/edit"
element={
<WideNotSupported redirectTo="/bank-sync">
<MobileBankSyncAccountEditPage />
</WideNotSupported>
<ErrorBoundary
FallbackComponent={FeatureErrorFallback}
resetKeys={[location.pathname]}
>
<WideNotSupported redirectTo="/bank-sync">
<MobileBankSyncAccountEditPage />
</WideNotSupported>
</ErrorBoundary>
}
/>
<Route path="/tags" element={<ManageTagsPage />} />
@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [BasilTh]
---
Wrap the mobile schedules, payees, and bank sync pages in scoped error boundaries, so a rendering error in one of these sections shows a recoverable fallback instead of crashing the whole app.