Commit 92fa47a
fix: add RouteErrorBoundary for data router error handling
The data router catches render errors internally instead of letting
them reach the React class component error boundary. Add an errorElement
on the root route that renders the same ErrorPage component and reports
to Sentry, so intentional page crashes (developer options, E2E tests)
still show the custom error page.
Co-authored-by: Francis Nepomuceno <n3ps@users.noreply.github.com>1 parent e9c3ee2 commit 92fa47a
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
28 | 43 | | |
29 | 44 | | |
30 | 45 | | |
| |||
60 | 75 | | |
61 | 76 | | |
62 | 77 | | |
| 78 | + | |
63 | 79 | | |
64 | 80 | | |
65 | 81 | | |
| |||
0 commit comments