Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 597 Bytes

File metadata and controls

26 lines (18 loc) · 597 Bytes
id sidebar_position title
typing_context
10
TypingContext

The TypingContext is established by the Channel component and exposes the useTypingContext hook. The stored value is an object of users currently typing in a single channel, with key as the user ID and value as the user details object.

Basic Usage

Pull the value from context with our custom hook:

const { typing } = useTypingContext();

Value

typing

The users currently typing in a single channel, with key as the user ID and value as the user details object.

Type
object