Skip to main content

Interface: SCFollowedManagerType

types/context.SCFollowedManagerType

Properties

emptyCache

Optional emptyCache: () => void

Type declaration

▸ (): void

Empty cache to revalidate all followed

Returns

void

Defined in

packages/react-core/src/types/context.ts:242


follow

Optional follow: (user: SCUserType) => Promise<any>

Type declaration

▸ (user): Promise<any>

Handle user follow/unfollow user

Parameters
NameType
userSCUserType
Returns

Promise<any>

Defined in

packages/react-core/src/types/context.ts:227


followed

followed: number[]

List of all user ids followed by the authenticated user

Defined in

packages/react-core/src/types/context.ts:212


isFollowed

Optional isFollowed: (user: SCUserType) => boolean

Type declaration

▸ (user): boolean

Handle check if a user follow a user, caching data

Parameters
NameType
userSCUserType
Returns

boolean

Defined in

packages/react-core/src/types/context.ts:232


isLoading

isLoading: (user: SCUserType) => boolean

Type declaration

▸ (user): boolean

List of current users in loading state

Parameters
NameType
userSCUserType
Returns

boolean

Defined in

packages/react-core/src/types/context.ts:222


loading

loading: number[]

List of all users in loading state

Defined in

packages/react-core/src/types/context.ts:217


refresh

Optional refresh: () => void

Type declaration

▸ (): void

Refresh followed

Returns

void

Defined in

packages/react-core/src/types/context.ts:237