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

components: pass payload to resetQuery #175

Closed zzacharo closed 3 years ago

zzacharo commented 3 years ago

closes inveniosoftware/invenio-app-rdm#531

When the action resetQuery is triggered there is no way to choose how to reset the query state. This PR gives the resetQuery action a payload that can be passed from components that override e.g the EmptyResults component. By doing that you can control the default query after the reset action is triggered!