Replies: 1 comment
-
Yeah, this is an issue we've definitely run into as well. Couple options: 1 - (Easier): Create an artificial delay between 2 - (More reliable): If you don't see a Window, then store the message on the Rust side instead of emitting it, and then make the JS send a custom command to check for any missed initialization-time messages after its ready. Eg: In the case of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I opened a new window and then this window listens for this event. However, it cannot listen to this event the first time the window is opened. Only when the window remains open can the event be listened to.
I suspect that when the new window is first opened, it hasn't finished initializing yet, so the listener isn't active at that moment. However, the event has already been emitted.
How can I solve this problem? It has been bothering me for many days. Thank you very much.
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions