appbaseio / appbaseio/reactivesearch

Mismatch between URL and internal state breaks back button behavior

オープン
#1,034 コメント 0 件 リアクション 0 件 担当者 1 名 @bietkul が担当を希望しています GitHub で見る
bug
主要言語
JavaScript
スター
4.9k
フォーク
478
PR マージ指標
30日以内にマージされた PR はありません

説明

**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**

![ScreenRecording2019-07-04at1](https://user-images.githubusercontent.com/878512/60681414-71e73300-9e8f-11e9-9afb-225ea429e517.gif)

**Desktop (please complete the following information):**
- OS: MacOS Mojave
- Chrome
- Version 75

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。