Overview
useFetchManyEntities returns a function that fetches a paginated list of entities with full filtering and sorting support. This is the low-level hook underlying EntityListProvider. For continuous-scroll or load-more list UIs, use useEntityList instead, which wraps this hook with built-in pagination state.
Usage Example
Parameters
Page number (1-indexed). Defaults to
1.Results per page. Defaults to server default.
Field to sort by. Options:
"new", "top", "hot", "controversial", or "metadata.<property>" to sort by a metadata field.Sort by a specific reaction type count. Use with
sortBy: "reaction".Sort direction:
"asc" or "desc".Sort algorithm type. Options:
"auto", "numeric", "text", "boolean", "timestamp". Used when sorting by a metadata field.Filter entities to a time window. Options:
"day", "week", "month", "year".Filter to entities associated with a specific source ID.
Filter to entities in a specific space.
Filter to entities created by a specific user.
If
true, return only entities from users the authenticated user follows.Filter by keywords. See Entity List Filters for the full filter schema.
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.
Populate related fields. Accepted values:
"user", "space", "topComment", "saved", "files".Returns
Array of entities for the current page.
Current page number.
Number of results per page.
Total number of pages matching the filters.
Total count of entities matching the filters (across all pages).
true if there are additional pages available.
