Skip to content

Commit

Permalink
Update fix-clear-residual-listeners.md
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Feb 28, 2024
1 parent 9d749d4 commit aa6e0c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .changes/fix-clear-residual-listeners.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
"tauri": patch:bug
---

Adds the `unlisten_all_js` method to struct `Webview` and calls it in on_page_load_handler when the corresponding webview window is refreshed.
This will only clean up all `js_listeners` for the window that was refreshed, and will not affect other windows.
Clear JS event listeneres on page load, which fixes zombie listeners when the page reloads.

0 comments on commit aa6e0c4

Please sign in to comment.