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

Two instances only calls "onSecondWindow" once #6

Open
AlooTheAloo opened this issue Apr 23, 2023 · 0 comments
Open

Two instances only calls "onSecondWindow" once #6

AlooTheAloo opened this issue Apr 23, 2023 · 0 comments

Comments

@AlooTheAloo
Copy link

AlooTheAloo commented Apr 23, 2023

This might be a technical limitation, but my app sometimes opens 2 or more instances of itself and they all have to "merge" into the main window. The "onSecondWindow" callback gets called only once. The only fix I've found for this is adding a random sleep at the beginning of the app's lifecycle, which is probably some of the worst code I've written in a while.

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