Skip to content

@sqlrooms/ai-core / useBlockSends

Function: useBlockSends() ​

useBlockSends(enabled?): void

Blocks every send while the calling component is mounted, reported through ChatComposerState.sendBlocked.

For a state that makes sending impossible chat-wide (a missing credential); conditional policies want useRegisterBeforeSend.

Parameters ​

ParameterTypeDefault value
enabledbooleantrue

Returns ​

void