appsmithorg / appsmithorg/appsmith

[Bug]-[540]:storeValue() drops values when called in quick succession

Offen
#7,576 10 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @bharath31 Auf GitHub ansehen
Bug Javascript Product JS Evaluation Medium Production Query & JS Pod Query Widgets & IDE Pod
Vorherrschende Sprache
TypeScript
Sterne
40.9k
Forks
4.8k
Ø Merge
1 T. 22 Std.
Gemergte PRs (30 T.)
45

Beschreibung

## Description

I'm using appsmith.store to gather data that is ultimately used when posting a form. The store is also used to populate the form fields when certain events happen on the page.

However the use of the input fields that have `onTextChanged` events that call `storeValue()` suffer from a kind of slowness and ultimately dropped updates to the store it seems. This leads to values that you thought were entered being incorrect.

[](https://user-images.githubusercontent.com/142613/133766709-57065323-469d-4559-8f43-2e4dd987ed41.mp4)

Note that I enter the number in the first line slowly and you can see how the store updates for each keystroke in the debug text field below the form. When I edit the second line to input 50 quickly the second `storeValue()` call seem to be dropped; you can see that the keystroke registers in the UI, but the update of the store seems not to happen leading to the input reverting the value 5 since that is the value of the store. This happens more easily in Firefox than in Chrome, but I can trigger it there too.

[Demo app](https://github.com/appsmithorg/appsmith/files/7184914/Slow.input.demo.txt)
(rename to .json, Github doesn't allow the uplaod of JSON for some reason...)

### Important Details

- Version: Cloud / Self-Hosted
- OS: I'm mostly on Linux. Mint 19.
- Browser: I see this in both Firefox and Chrome on Linux
- Environment production

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.