I have popup in which I need to update the data inside it in reactively. What function or event is needed to track when a popup closes?
Currently my code structure i
Unfortunately I did not see that unload is defined on window and not document. Simply changing the document.addEventListener("unload" to window.addEventListener("unload" fixes the problem.
document.addEventListener("unload"
window.addEventListener("unload"