Skip to content

How do i send an event once the app is loaded? #10581

Answered by FabianLars
nooblyf asked this question in Q&A
Discussion options

You must be logged in to vote

i'm guessing that happens because the 1st event is emitted before the frontend gets setup?

Correct. There really isn't anything we can do in Tauri to automatically detect when the frontend is fully ready so you'd have to do it yourself. You could either send a "ready" event from your frontend and wait for that on the rust side (likely storing it somewhere) or use tauri commands instead of events to request the data from the frontend instead of pushing it from the backend (of course that depends on the actual usecase)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nooblyf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants