Unable to Kill WatchImmediate #11087
Unanswered
aidanwardman
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hmm, what you showed here seems correct, simply calling stopRawWatcher is supposed to unregister/stop everything. Are there any errors in the devtools console maybe? |
Beta Was this translation helpful? Give feedback.
2 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Edit: Using Tauri v2
I am attempting to add dynamic watchers to a folder I select, and can then subsequently change.
I create the watcher given a particular path and callback function I want to use:
Then I change folder and attempt to kill it prior to re-creating it:
However I just can't appear to ever stop watching the folder, and each call just adds another and another and another watcher, all of which get triggered when ever an event happens.
Given the documented example below, how do I actually call the "stopWatching" to actually kill the watcher?
Forgive my ignorance or dumbness.
Beta Was this translation helpful? Give feedback.
All reactions