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

Dispatch to main after API call for UI interaction #7

Merged
merged 1 commit into from
Nov 28, 2018
Merged

Dispatch to main after API call for UI interaction #7

merged 1 commit into from
Nov 28, 2018

Conversation

maicki
Copy link
Collaborator

@maicki maicki commented Nov 24, 2018

We should dispatch to main after the API call to handle all UI interactions on the main thread. Currently if an error occurs it will call showAlert on a background thread.

I don't think we need to dispatch to main on each UI call as we are not really doing so much work within the callback handler so I would recommend to just dispatch it immediately.

Copy link
Owner

@KrauseFx KrauseFx left a comment

Choose a reason for hiding this comment

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

💯

@KrauseFx KrauseFx merged commit 9f1867b into KrauseFx:master Nov 28, 2018
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.

None yet

2 participants