You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using keep-alive in Nuxt so the user can hit the back button and carry on from where they left off.
But when a user applies a filter and then paginates to page 2, if they click a link and then return via the back button weirdly only page 2 results display and the page 1 results are lost.
However, this only happens if a filter is applied. With no filter applied, the page retains both page 1 + 2 results.
I am at a loss as to why this is happening. Would you be able to point me in the right direction?
Many thanks.
The text was updated successfully, but these errors were encountered:
In the InfiniteHits caching it uses a static cache key. This should be fine, but Instantsearch does some odd stuff, I guess relating to filters, that causes the cache to be written for queries that are different to the main one.
What this means in essence is the cache is being effectively cleared, because the cached value now has a state different to that of what we're expecting. And so we no longer retain the previous page's results.
Making the following change to this file appears to have resolved it...
I've made a Loom video to demonstrate and try explain the problem.
https://www.loom.com/share/372000ed79054ce0b419d30a7b78cb5f?sid=dbecb849-6777-4eb6-8fe3-2d0295abac19
We are using keep-alive in Nuxt so the user can hit the back button and carry on from where they left off.
But when a user applies a filter and then paginates to page 2, if they click a link and then return via the back button weirdly only page 2 results display and the page 1 results are lost.
However, this only happens if a filter is applied. With no filter applied, the page retains both page 1 + 2 results.
I am at a loss as to why this is happening. Would you be able to point me in the right direction?
Many thanks.
The text was updated successfully, but these errors were encountered: