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

Imports

Definition

Source: useSetUsername

Parameters

streamId

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

config

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

Return Type

The setUsername action and its loading state.