mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[GH-ISSUE #3762] [bug]: laggy text input #1310
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1310
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
Current behavior
When I type, characters are extremely delayed entering the screen.
Steps to reproduce
Environment
Production
Version
Local
@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
@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.

@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
.debfile. My specs are:But the bug also exists on mac os.
Disabling line wrap seems to help a bit, but not that much.
@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 .
@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
@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?
@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.