[PR #379] [CLOSED] Fix: Multiple network requests on longer "Enter/Return" key press to improve backend performance. #925

Closed
opened 2026-02-26 19:31:04 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/379
Author: @sharma-shanu
Created: 9/17/2023
Status: Closed

Base: mainHead: fix/mulitple-network-requests-on-longer-key-press


📝 Commits (2)

📊 Changes

1 file changed (+12 additions, -12 deletions)

View changed files

📝 apps/web/components/settings.tsx (+12 -12)

📄 Description


name: Pull Request
about: Multiple network requests on longer "Enter/Return" key press to improve backend performance.

Description

Debounces network requests when a user presses and holds "Enter/Return" key on settings page while updating their name
Fixes multiple network requests on longer "Enter/Return" key press to improve backend performance.

Addresses #364

Changes Made

This PR uses the existing implementation to debounce network request when a holds "Enter/Return" key while updating there name on /settings/profile route.

This creates a higher order function updateUserDebounce(user,duration) to prevent multiple network request sent.

Checklist

  • I have tested these changes locally and they work as expected.
  • I have added/updated tests that prove the effectiveness of these changes.
  • I have followed the project's coding style guidelines.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/379 **Author:** [@sharma-shanu](https://github.com/sharma-shanu) **Created:** 9/17/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/mulitple-network-requests-on-longer-key-press` --- ### 📝 Commits (2) - [`5e76963`](https://github.com/documenso/documenso/commit/5e7696337d511a30af7c42fdab24754e956e41e0) fix(web/components): debounce update user request and longer "Enter" key presses to enhance backend performance. - [`ed8d03f`](https://github.com/documenso/documenso/commit/ed8d03ffb367c8584f456cdafae7a78ed3b825fd) Merge branch 'main' of https://github.com/documenso/documenso into fix/mulitple-network-requests-on-longer-key-press ### 📊 Changes **1 file changed** (+12 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/components/settings.tsx` (+12 -12) </details> ### 📄 Description --- name: Pull Request about: Multiple network requests on longer "Enter/Return" key press to improve backend performance. --- ## Description Debounces network requests when a user presses and holds "Enter/Return" key on settings page while updating their name Fixes multiple network requests on longer "Enter/Return" key press to improve backend performance. ## Related Issue Addresses #364 ## Changes Made This PR uses the existing implementation to debounce network request when a holds "Enter/Return" key while updating there name on `/settings/profile` route. This creates a higher order function `updateUserDebounce(user,duration)` to prevent multiple network request sent. ## Checklist - [x] I have tested these changes locally and they work as expected. - [ ] I have added/updated tests that prove the effectiveness of these changes. - [x] I have followed the project's coding style guidelines. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:31:04 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#925
No description provided.