Hi! Does anyone have examples of persisting refinements? I’m trying to keep a person’s filters when the page is refreshed, but not sure of the best way to implement this in Algolia/couldn’t find it in the docs.
See Stack Overflow question that’s the same:
One way you could achieve this is by persisting the search state to the page url.
Here’s the documentation on how to achieve this:
The good thing about doing it that way is that it will make search results shareable !
Alternatively, you could use a similar mechanism (ie making ` a controlled component) and store the refinements into localstorage.
I hope this helps, don’t hesitate if you have any further questions about this!