Skip to content

use BLoC event transformer to ignore new confirmations while one is processing - #1701

Merged
i5hi merged 1 commit into
developfrom
fix-double-tap-duplicate-sell-orders
Dec 30, 2025
Merged

use BLoC event transformer to ignore new confirmations while one is processing#1701
i5hi merged 1 commit into
developfrom
fix-double-tap-duplicate-sell-orders

Conversation

@kumulynja

Copy link
Copy Markdown
Contributor

Added the bloc_concurrency package to solve this with a "quick" but definitive fix. This doesn't mean we shouldn't solve the underlying cause of the state variable being used wrongly in the confirmation event handler anymore, but using the bloc_concurrency package here and in other BLoCs is a great first line of defense to avoid concurrency issues even if the underlying code isn't concurrency safe yet.

Comment thread pubspec.lock
url: "https://pub.dev"
source: hosted
version: "0.9.22+7"
version: "0.9.22+8"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope this build change doesnt fuck us like last time 🤣

@kumulynja kumulynja Dec 24, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, is this something I should reverse maybe? I just did a make setup to start clean and it probably updated this automatically.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or fix it on a specific version that we know works? @ethicnology

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory it shouldn't be dangerous, but I don't know if you remember once this camera package fucked us on a build bump.

No worries we should check if camera still works after

@i5hi
i5hi merged commit cc2d455 into develop Dec 30, 2025
5 checks passed
@thibistaken
thibistaken deleted the fix-double-tap-duplicate-sell-orders branch March 19, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants