We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d2a38c commit d04c541Copy full SHA for d04c541
packages/react-router/lib/hooks.tsx
@@ -732,7 +732,7 @@ export function _renderMatches(
732
let errorElement: React.ReactNode | null = null;
733
let hydrateFallbackElement: React.ReactNode | null = null;
734
if (dataRouterState) {
735
- error = errors && match.route.id ? errors[match.route.id] : null;
+ error = errors && match.route.id ? errors[match.route.id] : undefined;
736
errorElement = match.route.errorElement || defaultErrorElement;
737
738
if (renderFallback) {
0 commit comments