const { data, loading, error } = useFeed({
where: {
for: '0x01`, // profileId
},
});
if (loading) return <div>Loading...</div>;
if (error) return <div>Error: {error.message}</div>;
return (
<ul>
{data.map((item, idx) => (
<li key={`${item.root.id}-${idx}`}>
// render item details
</li>
))}
</ul>
);
Experimental
Fetch a the feed of a given profile and filters.
You MUST be authenticated via useLogin to use this hook.
This signature supports React Suspense.
const { data, loading, error } = useFeed({
where: {
for: '0x01`, // profileId
},
suspense: true,
});
return (
<ul>
{data.map((item, idx) => (
<li key={`${item.root.id}-${idx}`}>
// render item details
</li>
))}
</ul>
);
This API can change without notice
Fetch a the feed of a given profile and filters.
You MUST be authenticated via useLogin to use this hook.