question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

infiniteHits remember previous pages

See original GitHub issue

I used the issues search and I didn’t found a issue related with that

In the current implementation, when I press Load More button the next page is fetched (and the query param in the url is updated) but previous pages are not remember in the url, so if you refresh now the browser, just the browser fetch the current page.

Could be possible remember the pages? Like yea, I’m in the 2 page, but under refresh I want to fetch all the previous page.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
vvocommented, Feb 14, 2017

I would say that on infinite like interfaces you should not try to sync the url with the current “page” (= scroll position). Twitter does not do it for instance and I think that’s the right move here.

If you want bookmakable pages then use the load more button but without having an infinite scroll example, replace the results everytime.

What do you think?

0reactions
mthuretcommented, Apr 11, 2017

React InstantSearch has been moved here: https://github.com/algolia/react-instantsearch This issue has either been rewritten or placed inside our backlog.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Infinitehits show-previous: when loading page=x, load all ...
We are using the infinitehits widget, and have enabled the “show-previous” modifier to enable the “page=x” query parameter, which allows us ...
Read more >
Infinite Scroll in React | Full Tutorial - YouTube
Infinite Scroll in React is a highly requested app feature that can be achieved in several ways. This React full tutorial provides two ......
Read more >
infinite hits via the new SM FAQ - DakkaDakka
Full tracking of what you have read so you can skip to your first unread post, easily see what has changed since you...
Read more >
instantsearch.js - UNPKG
Two scenarios possible:\n * the page is omitted -> return the given instance\n ... {SearchResults} event.results the previous results received from Algolia.
Read more >
Dance Device Lab – Apolla Performance Wear
It is so light you forget you are wearing it except for how much better your body feels ... The Infinite hits mid-calf,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found