appbaseio / appbaseio/reactivesearch
Mismatch between URL and internal state breaks back button behavior
- Lenguaje dominante
- JavaScript
- Estrellas
- 4.9k
- Forks
- 478
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
**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
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.