in my project, a single click trigger function that takes a few seconds to complete, like starting a course, waiting for a dom element, etc.
so, if the user navigates to another page, i don't want to still process it and save unintended data to storage.