useSuggestions
function useSuggestions( group, id, opts?): object;Loads follow suggestions for group:id — who this feed should follow (friends-of-friends
ranked by mutual overlap, topped up by popularity). Read-only: hydrates on mount
and whenever group/id/limit change, with a refresh to re-read. Not paginated
(the endpoint returns a capped top-N), so there is no loadNext/hasNext.
Inert (empty list, no network, enabled: false) inside a disabled provider.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
group |
string |
id |
string |
opts? |
{ limit?: number; } |
opts.limit? |
number |
Returns
Section titled “Returns”object
enabled
Section titled “enabled”enabled: boolean;error: Error | null;isLoading
Section titled “isLoading”isLoading: boolean;refresh
Section titled “refresh”refresh: () => Promise<void>;Returns
Section titled “Returns”Promise<void>
suggestions
Section titled “suggestions”suggestions: Suggestion[];