-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[bug] getAll() doesn't include windows created in JavaScript. #3297
Comments
I couldn't reproduce it on the API example. Did you try increasing the timeout value? |
I have tried it manually in the console and never see What do you mean by the API example? I can try that too? |
The API example is located here https://github.com/tauri-apps/tauri/tree/next/examples/api but you need to setup the repo in order to use it. |
This is the branch I'm using that reproduces the issue. Based off a project generated using https://github.com/tallarium/tauri-experiments/tree/next/get-all |
I see that. Let me see what is the problem. |
You're creating the window before the Tauri event system is ready and the |
Adding the timeout does work 👍🏾 If an event queue isn't an option would it be sensible to have an |
Alternatively, maybe windows creation should be blocked/queued until the event system is ready. |
Something like |
Describe the bug
If I create a new window in the main WebView, the array returned by
getAll()
doesn't include the new window.Reproduction
main
window.Expected behavior
I would expect the array returned by
getAll()
to contain both themain
andchild
windows.Platform and versions
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: