inveniosoftware/react-searchkit

Allow queryState change in `withState` HOC component

ntarocco opened this issue · 0 comments

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.