Skip to content

v6.0.0

Choose a tag to compare

@DanC5 DanC5 released this 17 May 21:06
· 2747 commits to master since this release

⚠️ 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 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.