I use higher level filter component to add query parameters to URL so that the users could share links with different types of filter.
I am exporting component withRouter() and everything seems legit - I get history injected into component props.
However when I call this piece of code:
this.props.history.push({
pathname: this.props.history.location.pathname,
query: { tags: selectedTags }
});
it does change the state of this.props.history and I can see my query present but the URL in browser does not change. Am I doing something wrong?