From 31629461393ecb2aa33c9a496e0309d9215c1f56 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Tue, 21 Feb 2017 16:56:35 +0000 Subject: [PATCH] In ReactReduxSpa, configure store before matching routes. Fixes #663 --- templates/ReactReduxSpa/ClientApp/boot-server.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/ReactReduxSpa/ClientApp/boot-server.tsx b/templates/ReactReduxSpa/ClientApp/boot-server.tsx index 1bb8842..4d43376 100644 --- a/templates/ReactReduxSpa/ClientApp/boot-server.tsx +++ b/templates/ReactReduxSpa/ClientApp/boot-server.tsx @@ -10,6 +10,7 @@ import configureStore from './configureStore'; export default createServerRenderer(params => { return new Promise((resolve, reject) => { // Match the incoming request against the list of client-side routes + const store = configureStore(); match({ routes, location: params.location }, (error, redirectLocation, renderProps: any) => { if (error) { throw error; @@ -27,7 +28,6 @@ export default createServerRenderer(params => { } // Build an instance of the application - const store = configureStore(); const app = (