domainIdsWithContent function

  1. @riverpod
Future<Set<String>> domainIdsWithContent(
  1. Ref<Object?> ref
)

Set of domain IDs that have at least one topic with content. Powers the goal-creation domain filter and the "no topics available" warning on goal cards whose linked domain has no studyable content.

Implementation

@riverpod
Future<Set<String>> domainIdsWithContent(Ref ref) async {
  final ds = ref.watch(supabaseDatasourceProvider);
  return ds.getDomainIdsWithContent();
}