Changing routing behavior from push to replace

I am using react InstantSearch and react-instantsearch-hooks-web to show infinite hits with a custom search and custom refinement lists, as well as custom routing functions for stateMapping. Is there a way to configure the router to use replace instead of push with new URLs when refinements and search terms are changing?