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
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 a Channel
ChannelStateContext - provides the stateful data needed to operate a Channel
ComponentContext - provides the UI component overrides for all child components of a Channel
TypingContext - provides an object of users currently typing in the Channel
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 Message component now provides the MessageContext to its children. Reference this guide for instructions on creating a custom message UI component.
The MessageInput component now provides the MessageInputContext to its children. Reference this guide for instructions on creating a custom input UI component.