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

The `setInitialState` in each component runs after the first search query #110

Closed ntarocco closed 3 years ago

ntarocco commented 4 years ago

Each component has the method setInitialState to set the initial values to be used in the first search query. The issue is that this runs after the first search query, so it is not take into account.

Reproduced in invenio-app-ils with a SortBy component.