Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.3.0: hashLocation query params not working #5

Closed
elboman opened this issue Sep 22, 2016 · 0 comments
Closed

v0.3.0: hashLocation query params not working #5

elboman opened this issue Sep 22, 2016 · 0 comments

Comments

@elboman
Copy link
Member

elboman commented Sep 22, 2016

The hashLocation query params are not working when accessing them from the transition:

state:

const state = {
  name: 'path',
  url: '/path?param1&param2',
  component: MyComponent
}

Inside MyComponent at url /#/path?param1=foo&param2=bar:

render() {
  const params = this.props.transition.params();
  console.log(params);
  ...
}

logs:

{ #: null, param1: "", param2: "" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant