const { typing } = useTypingContext();
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:
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 |
- I'm working with the Stream Chat React SDK and would like to ask questions about this documentation page: https://getstream.io/chat/docs/sdk/react/components/contexts/typing_context.md
- View as markdown
- Open in ChatGPT
- Open in Claude
On this page: