inveniosoftware / react-searchkit

React component library for interacting with a REST API.
https://inveniosoftware.github.io/react-searchkit/
MIT License
78 stars 40 forks source link

Allow queryState change in `withState` HOC component #99

Closed ntarocco closed 4 years ago

ntarocco commented 4 years ago

When an app implements its own custom component using withState HOC component, currently it can only read the state, but not modify it. Add the action updateQueryState to it.

  1. add the action updateQueryState in withState component, as done here
  2. test the changes for filters: given an app with 2 selected filters, e.g. file_type=pdf and language=en, when the new custom components updates language=it, file_type=pdf should be kept as is.
  3. Add tests and update docs and demos if necesssary.