goals function
Implementation
@riverpod
Future<List<LearningGoal>> goals(Ref ref) async {
final ds = ref.watch(supabaseDatasourceProvider);
final models = await ds.getGoals();
return models.map((m) => m.toEntity()).toList();
}
@riverpod
Future<List<LearningGoal>> goals(Ref ref) async {
final ds = ref.watch(supabaseDatasourceProvider);
final models = await ds.getGoals();
return models.map((m) => m.toEntity()).toList();
}