Overview
useFetchManyEntitiesWrapper is a stateful wrapper around useFetchManyEntities that manages pagination, sorting, and list state for you. Use it when you need a custom entity feed outside of EntityListProvider — for example, a user profile feed, a filtered search results page, or any custom list with infinite scroll.
All filters and sort options mirror those of useFetchManyEntities. Changing any sort option automatically resets the list and re-fetches from page 1.
Usage Example
Parameters
Number of entities per page. Default:
10.Filter to entities created by a specific user.
Filter to entities associated with a specific source ID.
Filter to entities in a specific space.
If
true, return only entities from users the authenticated user follows.Populate related fields. Accepted values:
"user", "space", "topComment", "saved", "files".Initial sort field. Default:
"new".Initial reaction type to sort by when
sortBy is reaction-based. Default: "upvote".Initial sort direction. Default:
"desc".Initial sort algorithm. Options:
"auto", "numeric", "text", "boolean", "timestamp". Used when sorting by a metadata field. Default: "auto".Filter entities to a time window. Options:
"day", "week", "month", "year".Filter by keywords. See Entity List Filters.
Filter by title content. See Entity List Filters.
Filter by body content. See Entity List Filters.
Filter by attachments data. See Entity List Filters.
Filter by geographic proximity. See Entity List Filters.
Filter by metadata fields. See Entity List Filters.
Returns
The current list of fetched entities. Appended to on each
loadMore call.true while fetching the initial page or loading more.true if additional pages are available.Current sort field.
Current reaction type used for reaction-based sorting.
Current sort direction.
Current sort algorithm.
Change the sort field. Resets the list and re-fetches from page 1.
Change the reaction type for reaction-based sorting. Resets and re-fetches.
Change the sort direction. Resets the list and re-fetches from page 1.
Change the sort algorithm. Resets the list and re-fetches from page 1.
Load the next page of entities. Appends to the existing list.

