My React app is using react-router-dom@4.3.1.
This is how I add search after checkbox is clicked:
this.props.history.push({search: `?packages=${list.join(',')}`})
As soon as I click the checkbox, queryparam would display for a split second and disappear. UI does appear corresponding to the queryparams.
What could be the reason it is disappearing?