Render lists of data with queries built-in
Render a list and automatically get access to type-safe data. Pick between normal, infinite, and paginated modes. Optionally pass a query.
The list rendering mode. ‘normal’ loads all data at once, ‘infinite’ loads more as you scroll, and ‘paginated’ uses page-based navigation.
The name of the entity/model to query from the database.
Function to render each item in the list. Receives the item data and its ID.
The query object to filter and sort the data. If not provided, fetches all records of the entity.
Component to show while data is loading.
Component to show when there are no results or an error occurs.
Number of items per page (only for ‘infinite’ and ‘paginated’ modes).
Required when mode is ‘paginated’. Pagination state object from useIDBPagination hook