Skip to main content

hooks/useSCUserIsBlocked

Functions

useSCUserIsBlocked()

useSCUserIsBlocked(user): object

info

This custom hook is used to check if the user is blocked by me or I am blocked by him.

How to use it:

Follow these steps:

1. import useUserIsBlocked from '@selfcommunity/react-core';
2. const {blocked, loading: loadingBlockedBy} = useUserIsBlocked(user);

Parameters

ParameterType
userSCUserType

Returns

object

MemberType
blockedboolean
loadingboolean

Source

packages/react-core/src/hooks/useSCUserIsBlocked.ts:19