appsmithorg / appsmithorg/appsmith

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

Đang mở
#7,576 10 bình luận 0 reaction 1 người được giao Được @bharath31 nhận Xem trên GitHub
Bug Javascript Product JS Evaluation Medium Production Query & JS Pod Query Widgets & IDE Pod
Ngôn ngữ chính
TypeScript
Star
40.9k
Fork
4.8k
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
45

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.