I’m trying to query communities by tags. They are called categories in the portal but I guess they are the same thing?
Using the following code but it’s always coming back empty:
const unSubscriber = CommunityRepository.getCommunities(
{ tags: ['Featured'] },
({ data: communities, onNextPage, hasNextPage, loading, error }) => {
if (error) {
console.log('error', error);
setError(error);
}
if (loading) {
setLoading(true);
}
if (communities) {
setCommunities(communities);
}
},
);