You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .changeset/open-zebras-remain.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,12 @@ Fix UI responsiveness issue with rapid user interactions in collections
7
7
Fixed a critical issue where rapid user interactions (like clicking multiple checkboxes quickly) would cause the UI to become unresponsive when using collections with slow backend responses. The problem occurred when optimistic updates would back up and the UI would stop reflecting user actions.
8
8
9
9
**Root Causes:**
10
+
10
11
- Event filtering logic was blocking ALL events for keys with recent sync operations, including user-initiated actions
11
12
- Event batching was queuing user actions instead of immediately updating the UI during high-frequency operations
12
13
13
14
**Solution:**
15
+
14
16
- Added `triggeredByUserAction` parameter to `recomputeOptimisticState()` to distinguish user actions from sync operations
15
17
- Modified event filtering to allow user-initiated actions to bypass sync status checks
16
18
- Enhanced `emitEvents()` with `forceEmit` parameter to skip batching for immediate user action feedback
0 commit comments