You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docusaurus/docs/React/hooks/message-list-hooks.mdx
-5Lines changed: 0 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,6 @@ title: MessageList Hooks
7
7
The `MessageList` and `VirtualizedMessageList` components use a variety of custom hooks to assemble a scrollable list of `Message` components, with all of the necessary data and handlers provided to each.
8
8
These hooks can be useful when building a custom list component.
9
9
10
-
### useCallLoadMore
11
-
12
-
A [custom hook](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageList/hooks/useCallLoadMore.ts) that returns a memoized callback of the loadMore function that only changes if the limit paramter changes.
13
-
This returned value is then added to the props object given to the `InfiniteScroll` component.
14
-
15
10
### useEnrichedMessages
16
11
17
12
A [custom hook](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageList/hooks/useEnrichedMessages.ts) that determines which messages need date separators and group css styles, returns the processed array of messages.
0 commit comments