Remember Position Inquiry for Infinite Scroll.

Hey!

Thanks for the thorough reply, I’ve played around with this approach but I can’t find in the API library an equivalent to “setCurrentPageIndexis” to force the reapter to display the saved value

import {local} from 'wix-storage';

$w.onReady( () => {
  $w("#items").onReady( () => {
      console.log(local.getItem("key"));
      'setCurrentPageIndex would go here...
  } );
} );

export function boxL_viewportEnter(event) {
   $w("#items").loadMore();
   let myValue = $w("#items").getCurrentPageIndex();
   local.setItem("key", myValue);
   console.log(local.getItem("key"))
}

I’ve also played around with “getcurrentitemindex” / “setcurrentitemindex” but the repeater displays it’s default pagesize length (i.e. 4)…

Thanks for your time, I really appreciate it :slight_smile: