appbaseio / appbaseio/reactivesearch
Mismatch between URL and internal state breaks back button behavior
- Vorherrschende Sprache
- JavaScript
- Sterne
- 4.9k
- Forks
- 478
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**Affected Projects**
Web
**Library Version:** 3.0.0-rc19
Also whatever runs on https://opensource.appbase.io/reactivesearch/demos/gitxplore/
**Describe the bug**
There is a mismatch between the URL params and the component's internal state. The effect is that after applying a few filters, you can't set them to the previous value with the browser back button.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to https://opensource.appbase.io/reactivesearch/demos/gitxplore/
2. Select Java and Ruby
3. Increase minimum stars to some value
4. Use browser back button (this should set minimum stars back to 0)
5. Use browser back button again, see that it doesn't do anything to the Java/Ruby selection
**Expected behavior**
Pressing back deselects the languages in reverse order in which they were added.
**Screenshots**

**Desktop (please complete the following information):**
- OS: MacOS Mojave
- Chrome
- Version 75
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.