I'm using react-query-builder for my search page, I want to maintain the query state on the UI in the query builder. Currently when the query gets completed and results are displayed on the next page, when we navigate back to the search page, the query is getting cleared How can maintain the state of the query in query builder?
I tried using defualtQuery in the props but it doesn't work as expected.