[Feature Request] - Implement createInfiniteQuery on react-query generator
antoniel opened this issue · comments
Hi there,
As I was working on a feature, I came across a use case for an infinite scroll that requires the use of useInfiniteQuery from React Query. I noticed that this isn't currently supported.
Looking through if I find a workaround I encountered the issue #111 that didn't concluded much.So, I propose to extend the generateReactQueryComponents
functionality to include useInfiniteQuery optionally.
I suggest making this an optional flag within the generateReactQueryComponents
function to maintain flexibility and backward compatibility, so it's possible to avoid to generate unnecessary code for those that don't need useInfiniteQuery
Looking forward to your thoughts and feedback on this. Thank you!
Hi 👋
Yeah, so far I'm using the fetcher generated function directly fir this kind of usecase.
The main issue is the pagination pattern, you know, no standard what so ever 🥲
This said, I can try to draft something, I do have few ideas for this one.