v6.0.0
⚠️ BREAKING CHANGES ⚠️ - Please review our v6 implementation guide prior to upgrading.
With this release, we've completely refactored how we share data in the component library. We've segmented our former ChannelContext into the following four sub-contexts:
ChannelActionContext- provides the functions needed to operate aChannelChannelStateContext- provides the stateful data needed to operate aChannelComponentContext- provides the UI component overrides for all child components of aChannelTypingContext- provides an object of users currently typing in theChannel
NOTE: The ChannelContext no longer exists, so all old references to useChannelContext() or useContext(ChannelContext) need to be replaced with the relevant context above. A list of all data found within each new context can be found here.
Feature
- We've added a handful of new features in this release, check out this wiki for more details. New features include:
- custom message actions
- custom triggers
- channel search
- quoted messages
- cooldown timer / slow mode UI
- submit key override
- The
Messagecomponent now provides theMessageContextto its children. Reference this guide for instructions on creating a custom message UI component. - The
MessageInputcomponent now provides theMessageInputContextto its children. Reference this guide for instructions on creating a custom input UI component.