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.
2 parents 7e87d50 + ecf8e59 commit 12ba347Copy full SHA for 12ba347
src/components/react-router-dom/ProtectedRoute.tsx
@@ -103,11 +103,6 @@ export default function ProtectedRoute({
103
return <div>Loading...</div>;
104
}
105
106
- // Show loading while checking router availability
107
- if (isRouterAvailable === null) {
108
- return <div>Loading...</div>;
109
- }
110
-
111
// If react-router-dom is not available, show fallback
112
if (isRouterAvailable === false) {
113
return <ProtectedRouteFallback>{children}</ProtectedRouteFallback>;
0 commit comments