File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
packages/react-router/lib/rsc Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -946,16 +946,8 @@ async function getRSCRouteMatch(
946
946
undefined ;
947
947
let error : unknown = undefined ;
948
948
949
- // FIXME: Is this logic right? We don't want to take any error - only the
950
- // error pegged to our route because the staticHandler should have done the
951
- // bubbling for us (on document requests at least)?
952
949
if ( ErrorBoundary && staticContext . errors ) {
953
- for ( const match of [ ...staticContext . matches ] . reverse ( ) ) {
954
- if ( match . route . id in staticContext . errors ) {
955
- error = staticContext . errors [ match . route . id ] ;
956
- break ;
957
- }
958
- }
950
+ error = staticContext . errors [ match . route . id ] ;
959
951
}
960
952
const errorElement = ErrorBoundary
961
953
? React . createElement (
You can’t perform that action at this time.
0 commit comments