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 account.
connectionStatus'connected' | 'disconnected' | 'loading'
The current connection status.
errorError | null
Error object if the status check failed.
Example
#Basic usage
#The following example demonstrates how to use the useSlackConnectionStatus hook to check Slack connection status.