coronasafe / care_fe

Care is a Digital Public Good enabling TeleICU & Decentralised Administration of Healthcare Capacity across States.
https://care.ohc.network
MIT License
191 stars 351 forks source link

Create a new useInfiniteQuery hook to handle paginated queries independently #7985

Open skks1212 opened 1 month ago

skks1212 commented 1 month ago

_Originally posted by @skks1212 in https://github.com/coronasafe/care_fe/pull/7946#discussion_r1629078169_

The new useInfiniteQuery hook would work like useQuery, but will contain utils to work with multiple pages.

The new hook should replace queries where we are fetching 1000 records as a hack

cc. @khavinshankar @rithviknishad

github-actions[bot] commented 1 month ago

Hi, @coronasafe/care-frontend-maintainers, This issue has been automatically marked as stale because it has not had any recent activity.