appsmithorg / appsmithorg/appsmith

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

Open
#7,576 10 comments 0 reactions 1 assignee Claimed by @bharath31 View on GitHub
Bug Javascript Product JS Evaluation Medium Production Query & JS Pod Query Widgets & IDE Pod
Dominant language
TypeScript
Stars
40.9k
Forks
4.8k
Avg merge
1d 22h
Merged PRs (30d)
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.