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

KM-4542: Execute feature flags request callback on main queue #51

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

kp-laura-sempere
Copy link
Collaborator

  • Execute the callback of the feature flags request on the main queue to avoid a crash on the app

Client.configuration.featureFlags.append(contentsOf: featuresInfo.flags)
Macros.postNotification(Notification.Name.__AppDidFetchFeatureFlags)
callback?(nil)
DispatchQueue.main.async {
Copy link
Contributor

Choose a reason for hiding this comment

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

what about wrapping the whole switch to avoid duplication?

@kp-laura-sempere kp-laura-sempere merged commit af6891d into master Jul 9, 2024
1 check passed
@kp-laura-sempere kp-laura-sempere deleted the KM-4542_fix_crash_when_executing_request branch July 9, 2024 16:59
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.

2 participants