mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
In ReactReduxSpa template, better report failure to match client-side routes
This commit is contained in:
@@ -14,6 +14,11 @@ export default function (params: any): Promise<{ html: string }> {
|
|||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If it didn't match any route, renderProps will be undefined
|
||||||
|
if (!renderProps) {
|
||||||
|
throw new Error(`The location '${ params.url }' doesn't match any route configured in react-router.`);
|
||||||
|
}
|
||||||
|
|
||||||
// Build an instance of the application
|
// Build an instance of the application
|
||||||
const store = configureStore();
|
const store = configureStore();
|
||||||
const app = (
|
const app = (
|
||||||
|
|||||||
Reference in New Issue
Block a user