courseTableProvider top-level property

StreamProviderFamily<CourseTableData, int> courseTableProvider
final

Provides course-table data for a semester.

Shared by the home and course-table screens so the same semester ID reuses one Drift stream and background refresh. Keying by Semester.id avoids recreating the provider when timestamp fields on the row change.

Implementation

final courseTableProvider = StreamProvider.autoDispose
    .family<CourseTableData, int>((ref, semesterId) {
      return ref
          .watch(courseRepositoryProvider)
          .watchCourseTable(semesterId: semesterId);
    });