Can I only include certain attributes in routing control?

We are using react InstantSearch and react-instantsearch-hooks-web to show infinite hits with a custom search and custom refinement lists. I have routing set to true right now for the out of the box behavior. I was wondering if I could exclude certain attributes, for example the page of infinite hits, from updating my url.
Thank you!

There’s no mechanism for excluding certain attributes with the basic routing={true}, but this is just syntactic sugar around the functions that convert URLs to state and state to URLs.

You can roll you own functions that are more selective about what gets passed back and forth.

The basic code is documented here: Sync your URLs with React InstantSearch Hooks | Algolia

1 Like

Thank you chuck, looking at that page helped me implement what I wanted

1 Like