Commit 4d6e55e
authored
release: v3.15.14 (#1309)
## [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` and `actions` properties.
* Added `useGroupChannelList`, replacing `useGroupChannelListContext`
* Added `useCreateChannel`, replacing `useCreateChannelContext`
* Added `useChannelSettings`, replacing `useChannelSettingsContext`
* Added `useGroupChannel`, replacing `useGroupChannelContext`
* Added `useMessageSearch`, replacing `useMessageSearchContext`
* Added `useThread`, replacing `useThreadContext`
- How to Use?
```tsx
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();
};
// ...
}
```
### 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.1 parent 9be7a49 commit 4d6e55e
2 files changed
+40
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
3 | 42 | | |
4 | 43 | | |
5 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments