Documentation Index
Fetch the complete documentation index at: https://docs.replyke.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
useCollectionEntitiesWrapper fetches the paginated list of entities saved in a collection. It supports multiple sort modes and infinite-scroll pagination via loadMore.
If no collectionId is passed, it defaults to the current collection from the Redux collections state (i.e., whatever useCollections is currently navigated to).
Usage Example
Parameters
The collection to fetch entities from. Defaults to the current collection in Redux state.
Number of entities per page. Default:
20.Initial sort mode. Default:
"added" (sorted by when the entity was saved).Initial sort direction. Default:
"desc".Optional associations to include with each entity (e.g.,
"user", "space", "topcomment").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 mode.
Current sort direction.
Change the sort mode. Resets the entity list and re-fetches from page 1.
Change the sort direction. Resets the entity list and re-fetches from page 1.
Load the next page of entities. Appends to the existing list.
Reset and re-fetch from page 1.
Sort Modes
| Value | Description |
|---|---|
added | Sorted by when the entity was added to the collection |
new | Sorted by entity creation date |
top | Sorted by vote count |
hot | Sorted by hot score (engagement-based) |

