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

unable to reset the QPs after setting an initial value #23

Open
shankarsridhar opened this issue Mar 8, 2017 · 1 comment
Open

unable to reset the QPs after setting an initial value #23

shankarsridhar opened this issue Mar 8, 2017 · 1 comment

Comments

@shankarsridhar
Copy link

shankarsridhar commented Mar 8, 2017

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
Copy link
Author

bump ^^

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