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

Avoid async main queue again when showing a popup #388

Open
traitanhong98 opened this issue Feb 21, 2024 · 0 comments
Open

Avoid async main queue again when showing a popup #388

traitanhong98 opened this issue Feb 21, 2024 · 0 comments

Comments

@traitanhong98
Copy link

Hi team, currently, I'm having an issue with your lib. When my application got an error and multiple popup with same content showing at same time. The isCurrentlyDisplaying will not working properly because when I call display, it'll async back to mainThread later and the next time I check the Displaying will always return false.

What I'm trying to do is set the name to the popup, if that popup is showing, the same one will not be able to shown.

Ex:

Screenshot 2024-02-21 at 15 23 33

The condition will not trigger because it show after async back to mainThread

My suggestion is to not async when you show the popup if we was already in main thread:

Screenshot 2024-02-21 at 14 29 54

@traitanhong98 traitanhong98 changed the title Avoid async main queue when showing a popup Avoid async main queue again when showing a popup Feb 21, 2024
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

No branches or pull requests

1 participant