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(mobile): unnecessary rebuilds from partner share notifier #14170

Merged
merged 4 commits into from
Nov 17, 2024

Conversation

mertalev
Copy link
Contributor

Description

I noticed this notifier was triggering a rebuild of the app bar because [] is not equal to [] (different objects). This PR changes this to use a deep comparison instead. Also makes the watching happen only after the initial query finishes to make sure there's no race condition.

mobile/lib/providers/partner.provider.dart Outdated Show resolved Hide resolved
mobile/lib/providers/partner.provider.dart Outdated Show resolved Hide resolved
@mertalev mertalev merged commit 944ea7d into main Nov 17, 2024
36 checks passed
@mertalev mertalev deleted the fix/mobile-partner-notifier branch November 17, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants