Skip to content

Commit

Permalink
fix: delay fetching studyRepo
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesvedder committed Jun 30, 2024
1 parent fe7a964 commit 938ceb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion designer_v2/lib/features/study/study_test_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ class StudyTestController extends _$StudyTestController {
//
// Ideally, we would stream changes from the backend/database directly,
// but this is a sufficient workaround for now.
studyRepo.fetch(studyId);
Future.delayed(
const Duration(milliseconds: 100),
() => studyRepo.fetch(studyId),
);
print('StudyTestController.dispose');
});
return StudyTestControllerState(
Expand Down

0 comments on commit 938ceb3

Please sign in to comment.