You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we save review summaries and comments on blur. However, if the user navigates away or refreshes the page before they click out of the text box, that means the content is lost. This could definitely occur and cause a user to lose a carefully crafted review, which we don't want.
However, saving onChange is not necessarily something we want to do either. On change can fire really frequently and debouncing it is not unintensive. One thing we could do is have an onChange handler that we only fire once every few seconds to save the difference. That way if someone spends a long time carefully typing up a comment, we're not firing PATCH an unreasonable amount, not doing a debounce dance, we're just checking the time and only firing if a certain amount has passed. Do that along with blur and we should be able to avoid too much loss.
The text was updated successfully, but these errors were encountered:
danielBingham
added
research
This is a research and discovery story. The output is documentation.
story
A standard story that fits in a single sprint.
labels
Oct 21, 2023
Right now we save review summaries and comments on blur. However, if the user navigates away or refreshes the page before they click out of the text box, that means the content is lost. This could definitely occur and cause a user to lose a carefully crafted review, which we don't want.
However, saving onChange is not necessarily something we want to do either. On change can fire really frequently and debouncing it is not unintensive. One thing we could do is have an onChange handler that we only fire once every few seconds to save the difference. That way if someone spends a long time carefully typing up a comment, we're not firing PATCH an unreasonable amount, not doing a debounce dance, we're just checking the time and only firing if a certain amount has passed. Do that along with blur and we should be able to avoid too much loss.
The text was updated successfully, but these errors were encountered: