We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a881ca5 commit 2ffc31aCopy full SHA for 2ffc31a
templates/ReactReduxSpa/ClientApp/boot-server.tsx
@@ -14,6 +14,11 @@ export default function (params: any): Promise<{ html: string }> {
14
throw error;
15
}
16
17
+ // If it didn't match any route, renderProps will be undefined
18
+ if (!renderProps) {
19
+ throw new Error(`The location '${ params.url }' doesn't match any route configured in react-router.`);
20
+ }
21
+
22
// Build an instance of the application
23
const store = configureStore();
24
const app = (
0 commit comments