appsmithorg / appsmithorg/appsmith

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

Ouverte
#7,576 10 commentaires 0 réactions 1 personne assignée Réclamée par @bharath31 Voir sur GitHub
Bug Javascript Product JS Evaluation Medium Production Query & JS Pod Query Widgets & IDE Pod
Langage dominant
TypeScript
Étoiles
40.9k
Forks
4.8k
Merge moyen
1 j 22 h
PR mergées (30 j)
45

Description

## 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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.