Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race condition when joining a school class with courses #1781

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

nilsreichardt
Copy link
Member

As described in #1780, there was a bug where nothing happened after selecting a course to join a class. I added some print statements to understand the problem and found out that when pushing the _GroupJoinPage page with Navigator.push multiple instances of the GroupJoinBloc were created (~16 instances). This led to the problem that when later accessing the GroupJoinBloc with BlocProvider.of(context) a different bloc was returned than the one used when entering the code.

Fixes #1780

@github-actions github-actions bot added the feature: groups Groups umbrella term for courses and classes. label Oct 31, 2024
@Jonas-Sander
Copy link
Collaborator

Nice debugging work! :)

Copy link

Visit the preview URL for this PR (updated for commit 3543b6c):

https://sharezone-test--pr1781-fix-joining-group-cl-p1m7gbd4.web.app

(expires Sun, 03 Nov 2024 22:55:25 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b

@nilsreichardt nilsreichardt merged commit 3fd9a38 into main Oct 31, 2024
36 checks passed
@nilsreichardt nilsreichardt deleted the fix-joining-group-classes branch October 31, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: groups Groups umbrella term for courses and classes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Joining a group with multiple courses
2 participants