FerdF
Convex Community5mo ago
14 replies
Ferd

Getting a warning when reloading and closing tabs (Svelte)

I'm working on a project that involves a good amount of real-time data going in and out. When a user reloads or closes the page, they're often met with this warning that there are unsaved changes. I don't need this warning, and users don't need to worry about any unsaved changes. So, is there a way I can prevent this from popping up?

I tried adding an event listener to beforeunload and nulling out the property, but neither of those work. Has anyone run into this before, and is there any way to deal with this?
CleanShot_2025-08-27_at_15.12.44.png
Was this page helpful?