Thoughts on beforeunload
support for useDebounceFetcher
and useDebounceSubmit
?
#318
TomerAberbach
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using
useDebounceFetcher
to make a form automatically save itself when it's edited. However, because of the debounce it's possible for the user to make an edit and then close the page before the edit has a chance to save.I'm wondering if adding support for
beforeunload
event handling might be useful for this case. I could imagine two approaches (could be configurable):beforeunload
handler before the page closes. Should work, but I think it means that in the case of an error the user will not receive any feedback about thatWhat do you think?
Beta Was this translation helpful? Give feedback.
All reactions