Commit 31b2e80
fix: move providers inside ErrorBoundary to prevent crash loop (#4783)
* fix: move providers inside ErrorBoundary to prevent crash loop (#4776)
Move ExploreStateProvider, DataDictionaryStateProvider, and
FileManifestStateProvider inside the ErrorBoundary in _app.tsx.
Previously these providers sat above the ErrorBoundary. When a provider
crashed (e.g. ExploreStateProvider's reducer throwing on a malformed
filter URL param), the error bypassed the ErrorBoundary entirely and
bubbled up to Next.js's built-in error handling, which attempted to
recover by re-rendering the page — triggering the same crash in an
infinite loop.
With the providers inside the ErrorBoundary, any error from their
reducers, hooks, or child components is caught and rendered as the
Error fallback page. The header and footer remain visible (they are
intentionally outside the boundary) so the user can still navigate away.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: revert unintended package.json/lock changes (#4776)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Fran McDade <18710366+frano-m@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent dcaeb35 commit 31b2e80
1 file changed
Lines changed: 23 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
0 commit comments