createInfiniteScroll from @solid-primitives/pagination with createServerData$ and useRouteData
I'm trying to figure out how to get createInfiniteScroll from @solid-primitives/pagination to work with createServerData$ and useRouteData
I believe createInfiniteScroll expects a fetcher function that returns a Promise<T[]> per the definition https://github.com/solidjs-community/solid-primitives/tree/main/packages/pagination#definition
But I think createServerData$ is like createResource in that it takes an asynchronous fetcher function and returns a signal that is updated with the resulting data when the fetcher completes.
I'm currently trying something like this for createServerData$:
when returning pages() from that I'm getting the errors:
unsupported type
content is not iterable
And trying this for createServerData$ and useRouteData:
when returning pages() from that I'm getting the error:
An error occured while server rendering /pagination:
renderToString timed out
I believe createInfiniteScroll expects a fetcher function that returns a Promise<T[]> per the definition https://github.com/solidjs-community/solid-primitives/tree/main/packages/pagination#definition
But I think createServerData$ is like createResource in that it takes an asynchronous fetcher function and returns a signal that is updated with the resulting data when the fetcher completes.
I'm currently trying something like this for createServerData$:
when returning pages() from that I'm getting the errors:
unsupported type
content is not iterable
And trying this for createServerData$ and useRouteData:
when returning pages() from that I'm getting the error:
An error occured while server rendering /pagination:
renderToString timed out
