Skip to content

Stop resetting filtering query params on tab change #561

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

Merged
merged 1 commit into from
Oct 11, 2018
Merged

Stop resetting filtering query params on tab change #561

merged 1 commit into from
Oct 11, 2018

Conversation

HuggableSquare
Copy link
Contributor

Fixes #515

I tried to write an acceptance test for this, but I couldn't manage to get one that failed under the old code. This bug is very elusive, and I kind of suspect fastboot might be part of it (although I've never used fastboot so I could be very wrong here).

It seems like sometimes you will load the page and it will work perfectly as intended, and other times the bug will pop up. The best reproductions I've found are either what was said in #515 (opening the url to the class directly in a new tab and then trying the bug), or going to the home page in a fresh tab and then going to the class page. From what I can tell, for some reason in these cases the link-to's never update with new query params on them when the values change, causing the bug.

With that said, this PR has solved the bug in those cases, and I haven't been able to reproduce it with this change, so I figured I would throw it up for y'all to look at and decide what to do. :)

@toddjordan
Copy link
Contributor

Thanks!

@HuggableSquare HuggableSquare deleted the filter-reset-tab-fix branch October 11, 2018 03:34
Gaurav0 pushed a commit to Gaurav0/ember-api-docs that referenced this pull request Sep 16, 2019
Replace 'Google map' w/ 'map'.
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

Successfully merging this pull request may close these issues.

3 participants