[GH-ISSUE #3762] [bug]: laggy text input #1310

Closed
opened 2026-03-16 19:46:58 +03:00 by kerem · 7 comments
Owner

Originally created by @cdaringe on GitHub (Jan 18, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3762

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I type, characters are extremely delayed entering the screen.

Steps to reproduce

  1. download the macos arm build
  2. create a new collection. i only have four POST routes
  3. execute some requests
  4. type. observe chronic slowness

Environment

Production

Version

Local

Originally created by @cdaringe on GitHub (Jan 18, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3762 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When I type, characters are extremely delayed entering the screen. ### Steps to reproduce 1. download the macos arm build 2. create a new collection. i only have four POST routes 3. execute some requests 4. type. observe chronic slowness ### Environment Production ### Version Local
kerem 2026-03-16 19:46:58 +03:00
Author
Owner

@JohnICB commented on GitHub (Jan 23, 2024):

Can confirm.
Not only typing is laggy, but also scrolling through JSON responses or selecting text.
It helps if instead of JSON formatted text I try to scroll through / select the text from the 'raw' tab

<!-- gh-comment-id:1906809040 --> @JohnICB commented on GitHub (Jan 23, 2024): Can confirm. Not only typing is laggy, but also scrolling through JSON responses or selecting text. It helps if instead of JSON formatted text I try to scroll through / select the text from the 'raw' tab
Author
Owner

@CheaterTim commented on GitHub (Feb 4, 2024):

I am encountering the same issue on linux with the deb, I have found that mostly writing into the request body seems to cause issues (syntax highlighting refreshing?), but I haven't tested it extensively yet.

I am not qualified to debug issues like this, but I did my best in the dev tools, maybe it'll be useful to someone.
image

<!-- gh-comment-id:1925723855 --> @CheaterTim commented on GitHub (Feb 4, 2024): I am encountering the same issue on linux with the deb, I have found that mostly writing into the request body seems to cause issues (syntax highlighting refreshing?), but I haven't tested it extensively yet. I am not qualified to debug issues like this, but I did my best in the dev tools, maybe it'll be useful to someone. ![image](https://github.com/hoppscotch/hoppscotch/assets/85891155/5a68782f-aa80-4cdb-bf13-26ce6afe3d95)
Author
Owner

@HeIIow2 commented on GitHub (Feb 23, 2024):

This is defently a huge issue.

Writing in the request body or or getting the formatted response nearly brings the whole program to a halt.
(every action takes about a second)

I am also using the .deb file. My specs are:

OS: Pop!_OS 22.04 LTS x86_64
Host: MacBookPro16,2 1.0
Kernel: 6.6.16-t2-jammy
DE: GNOME 42.5
WM: Mutter
CPU: Intel i5-1038NG7 (8) @ 3.800GHz
GPU: Intel Device 8a53

But the bug also exists on mac os.

Disabling line wrap seems to help a bit, but not that much.

<!-- gh-comment-id:1961201543 --> @HeIIow2 commented on GitHub (Feb 23, 2024): This is defently a huge issue. Writing in the request body or or getting the formatted response nearly brings the whole program to a halt. (every action takes about a second) I am also using the `.deb` file. My specs are: ``` OS: Pop!_OS 22.04 LTS x86_64 Host: MacBookPro16,2 1.0 Kernel: 6.6.16-t2-jammy DE: GNOME 42.5 WM: Mutter CPU: Intel i5-1038NG7 (8) @ 3.800GHz GPU: Intel Device 8a53 ``` But the bug also exists on mac os. Disabling line wrap seems to help a bit, but not that much.
Author
Owner

@cdaringe commented on GitHub (Feb 23, 2024):

I have a suspicion that text inputs are modeled as controlled fields, which creates unnecessary work on every key stroke .

<!-- gh-comment-id:1961677435 --> @cdaringe commented on GitHub (Feb 23, 2024): I have a suspicion that text inputs are modeled as controlled fields, which creates unnecessary work on every key stroke .
Author
Owner

@HeIIow2 commented on GitHub (Feb 26, 2024):

Here is the code that adds the onchange listener to the body, regardless of formatting.

github.com/hoppscotch/hoppscotch@00862eb192/packages/hoppscotch-common/src/composables/codemirror.ts (L289)

this documentation is relevant and this is the problematic func

<!-- gh-comment-id:1963774079 --> @HeIIow2 commented on GitHub (Feb 26, 2024): Here is the code that adds the onchange listener to the body, regardless of formatting. https://github.com/hoppscotch/hoppscotch/blob/00862eb192f4df30f564d408b48ba9843d48b0c8/packages/hoppscotch-common/src/composables/codemirror.ts#L289 [this documentation](https://codemirror.net/docs/ref/#view.ViewUpdate) is relevant and this is the [problematic func](https://codemirror.net/docs/ref/#state.ChangeSet.toJSON)
Author
Owner

@HeIIow2 commented on GitHub (Feb 29, 2024):

@cdaringe The bug was fixed for me using the newest release of the desktop app.
Could you test it and close the issue if resolved?

<!-- gh-comment-id:1970841182 --> @HeIIow2 commented on GitHub (Feb 29, 2024): @cdaringe The bug was fixed for me using the newest release of the desktop app. Could you test it and close the issue if resolved?
Author
Owner

@liyasthomas commented on GitHub (Feb 29, 2024):

Thanks for your patience and valuable feedback. This issue has been resolved in the latest release via #3848 on v2023.12.6.

Closing this ticket as the fix is now available in the recent version. Feel free to reach out if you encounter any further concerns.

<!-- gh-comment-id:1970956500 --> @liyasthomas commented on GitHub (Feb 29, 2024): Thanks for your patience and valuable feedback. This issue has been resolved in the latest release via #3848 on [v2023.12.6](https://github.com/hoppscotch/hoppscotch/releases/tag/2023.12.6). Closing this ticket as the fix is now available in the recent version. Feel free to reach out if you encounter any further concerns.
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/hoppscotch#1310
No description provided.