Skip to main content
Hook to set the display name of the current user in a stream.

Imports

Definition

Source: useSetDisplayName

Parameters

streamId

  • Type: string
The id of the stream to set the display name of.

config

  • Type: ActionConfig<Myself["setDisplayName"]>
  • Optional
Configuration options for the action.

Return Type

The setDisplayName action and its loading state.