Tauri Listener Accumulation #10832
Unanswered
BatuhanAksoyy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm coding a desktop application with Vue and Tauri. Today I was trying implement progression system with the library that i have created.
The library that I use want me to provide a struct that implements
Reporter
. It usessend
method for progression and I useemit
to send this information to the frontend.At the frontend I use
listen
to listen progressions.I should hide the window when process is started and show the window when process exits.
I press a start button, it downloads things and shows me the progression, hids the window.
Then I stop the process, it shows the window.
When I stop the process and try to navigate through
vue-router
it shows me the loading screen.For some reason the
listen
function triggers and shows the loading screen cause I use store functionwait.set
for every event.The funny part is when I add
println!()
under the back-endInstanceReport
send
function it doesn't happen.I wasn't facing with this issue on old tauri versions.
I'm using
tauri-2.0.0rc
and it uses a new traitEmitter
.Maybe the problem is me, Vue or this new Emitter trait but I need some help because I couldn't fix the problem.
Beta Was this translation helpful? Give feedback.
All reactions