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 })