Temboard
can't reset createInfiniteScroll
hello, at our team we are trying to create infinite scrolling with filters with @solid-primitives/pagination with signal: createInfiniteScroll but we encoutered a problem:
You can't reset createInfiniteScroll cleanly, while you can clear all values like this:
batch(() => {
setPage(0);
setEnd(false);
setPages([]);
});
but this will result in running the fetcher with page=1 and then page=1 see video
In the stackblitz example there is also copy of createInfiniteScroll for debugging
Here is a minimal reproduction scenario: https://stackblitz.com/edit/solidjs-template-raszfy?file=src%2FApp.tsx
Do you please know how to fix it?
4 replies