Infinite scroll: click event

Hi everyone.

We have an instantsearch page. Need to add event when we click on “Show More” button. For instance need to add to increase url parameter ‘page’. For instance http://home.site?page=3 etc.

Hi @projdevel,

Welcome to the Algolia Community!

I have a codesandbox that implements infinite scroll and routing here.

The documentation for infinite scroll and routing may be of some help.

Let us know how that works for you!

1 Like

Hi @cindy.cullen, sorry I meant not instantsearch(V3) . I meant instansearch(v2), that using in magento2 module. There need to add page parameter.

Hi @projdevel,

Try this instead: https://codesandbox.io/s/instantsearchjs-template-013cl

Let us know how that works for you!

Hi @cindy.cullen, that works great!

But how I can remove pagination container through widget templates
I see only: ‘next’, ‘last’, previous’, ‘first’. I need to take empty srting instead pagination container.
?

I need only ‘Show more’ button.

already decided it to use render function

1 Like