ember-query-params icon indicating copy to clipboard operation
ember-query-params copied to clipboard

unable to reset the QPs after setting an initial value

Open shankarsridhar opened this issue 7 years ago • 1 comments

TL;DR

Whats the recommended way to reset the QPs after setting them to some values on page load ?


In my controller, I do something like :

paramsRelay.setParam(paramName, undefined);

where, paramsRelay: Ember.inject.service() paramName is a string, say 'detected_via'.

But on debugging, I see that the paramName is first set to undefined and then to the string 'undefined'. This setting of undefined and then to string 'undefined', happens inside the queryParamsDidChange method inside the autosubscribe.js file.

Not sure if this is a bug or if I am setting the QPs the wrong way.

What am I trying to do ? I have my QPs enabled on page load. Then I wanna remove the query Param when the checkbox is turned off by user.

I would be happy to give more information, if needed.

shankarsridhar avatar Mar 08 '17 20:03 shankarsridhar

bump ^^

shankarsridhar avatar May 12 '17 01:05 shankarsridhar