offirgolan / ember-parachute

Improved Query Params for Ember
https://offirgolan.github.io/ember-parachute
MIT License
199 stars 40 forks source link

add serialized information to queryParamsState #47

Closed mazondo closed 6 years ago

mazondo commented 6 years ago

Quick attempt at resolving this issue: https://github.com/offirgolan/ember-parachute/issues/41

The use case for us is that we're trying to generate canonical/next/prev links for fastboot rendered pages. Unfortunately, the new router service in ember doesn't serialize values correctly when used with ember-parachute, so you can't just pass values into the this.get('router').urlFor() method.

Now, we're pulling the queryParamsState value and building an object of changed values and passing that into the urlFor method.

kiwiupover commented 6 years ago

Looks great! Thanks @mazondo

offirgolan commented 6 years ago

Thanks for this PR @mazondo! 😄

offirgolan commented 6 years ago

Released with v0.3.6