From 273ec8489b10aeb89ade8df20368d672e8a7877b Mon Sep 17 00:00:00 2001 From: kyusu Date: Thu, 17 Aug 2017 11:25:53 +0200 Subject: [PATCH] Use location instead of the undefined query property --- src/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.js b/src/server.js index 0226c9e..311e4d6 100644 --- a/src/server.js +++ b/src/server.js @@ -31,12 +31,12 @@ function fetchComponentData(renderProps, store) { component = component.WrappedComponent; } if (component.fetchData) { - const { query, params, history } = renderProps; + const { location, params, history } = renderProps; return ( component .fetchData({ dispatch: store.dispatch, - query, + query: location.query, params, history })