[v3.15.14] (Feb 7 2025)
Features:
- Added custom hooks for each module replacing the previous context hook. The custom hook allows access to the provider's data, which are divided into
state
andactions
properties.- Added
useGroupChannelList
, replacinguseGroupChannelListContext
- Added
useCreateChannel
, replacinguseCreateChannelContext
- Added
useChannelSettings
, replacinguseChannelSettingsContext
- Added
useGroupChannel
, replacinguseGroupChannelContext
- Added
useMessageSearch
, replacinguseMessageSearchContext
- Added
useThread
, replacinguseThreadContext
- How to Use?
import { useGroupChannel } from '@sendbird/uikit-react/GroupChannel/context'; // Implement your code inside the react function component. const Component = () => { // const { currentChannel, scrollToBottom } = useGroupChannelContext(); const { state : { currentChannel, }, actions : { scrollToBottom }, } = useGroupChannel(); const onScrollDownButtonClick = () => { scrollToBottom(); }; // ... }
- Added
Fixes:
- Fixed an issue where the pasting the formatted text to
MessageInput
did not shows properly. - Fixed a bug with forwardRef Rules of Hooks violation.