@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
| Parameter | Type | Default value |
|---|---|---|
enabled | boolean | true |
Returns
void