Scroll restoration with infinite hits and cache (using react-instantsearch-hooks)

Good morning,

As stated in the title, we’re using instantsearch hooks and infinite hits and we’re trying to implement scroll restoration when navigating back to the results. I found a support article on this matter here which utilises createInfiniteHitsSessionStorageCache() on the infinite hits object.

However using the same import for the hooks version gives me a type error and a reference error while running the code.

I was wondering if you have an example for react-instantsearch-hooks or you could point me in the right direction regarding this?

1 Like

Has anyone else had this issue?