Optional
limit?: InputMaybe<LimitType>Optional
where?: InputMaybe<FeedHighlightsWhere>import { useFeedHighlights, ProfileId } from '@lens-protocol/react';
function Feed({ profileId }: { profileId: ProfileId }) {
const { data, loading, error } = useFeedHighlights({
where: {
for: profileId,
},
});
if (loading) return <div>Loading...</div>;
if (error) return <div>Error: {error.message}</div>;
return (
<ul>
{data.map((item) => (
<li key={item.id}>
// render item details
</li>
))}
</ul>
);
}
Fetch a the highlights of a feed for given profile and filters.
You MUST be authenticated via useLogin to use this hook.