Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Location object does not get passed to components server side. #129

Closed
hansman opened this issue Jun 16, 2016 · 0 comments
Closed

Location object does not get passed to components server side. #129

hansman opened this issue Jun 16, 2016 · 0 comments

Comments

@hansman
Copy link

hansman commented Jun 16, 2016

The location object does not get passed to components server side.

On current master

const location  = this.path;
ReactRouter.match({routes, location}, (error, redirectLocation, renderProps) => {

--> Yet, the component's this.props is an empty object. It should include the location so.

The same is true for params and routeParams

Trying createLocation did not work for me:

var history = ReactRouter.useRouterHistory(useQueries(createMemoryHistory))();
const location = history.createLocation(this.request.url);
@hansman hansman changed the title Router params are empty server side. Location object does not get passed to components server side. Jun 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants