Skip to content

How to getPathname(), getQuery() in 1.0.0? #1562

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

Closed
jedwards1211 opened this issue Jul 16, 2015 · 2 comments
Closed

How to getPathname(), getQuery() in 1.0.0? #1562

jedwards1211 opened this issue Jul 16, 2015 · 2 comments

Comments

@jedwards1211
Copy link

I had some code like the following using router v0.13:

  onGaugeClick(blockId) {
    this.transitionTo(this.getPathname(), {}, {editBlock: blockId});
  },

The idea being that if I change the route to this particular component, it won't break this method.

Why were getPathname() and getQuery() removed from the State mixin in 1.0.0? Did some kind of philosophical opposition to these develop?

It's very convenient to be able to code up components that can modify the query in a route-agnostic way.

@agundermann
Copy link
Contributor

See #1502

@knowbody
Copy link
Contributor

knowbody commented Sep 9, 2015

related to #1502, closing

@knowbody knowbody closed this as completed Sep 9, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 23, 2019
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

3 participants