In-App UI
React
Hooks
useSlackConnectionStatus
useSlackConnectionStatus
The useSlackConnectionStatus
hook is used to check the current Slack connection status for a user.
Parameters#
This hook does not accept any parameters.
Returns#
A UseSlackConnectionStatusReturn
object with the following properties:
isConnectedboolean
Whether the user has a connected Slack accountconnectionStatus'connected' | 'disconnected' | 'loading'
The current connection statuserrorError | null
Error object if the status check failedExample#
Basic usage#
The following example demonstrates how to use the useSlackConnectionStatus
hook to check Slack connection status.