appsmithorg / appsmithorg/appsmith

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

Abierto
#7,576 10 comentarios 0 reacciones 1 asignado Reclamado por @bharath31 Ver en GitHub
Bug Javascript Product JS Evaluation Medium Production Query & JS Pod Query Widgets & IDE Pod
Lenguaje dominante
TypeScript
Estrellas
40.9k
Forks
4.8k
Merge medio
1 d 22 h
PR fusionados (30 d)
45

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.