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
* Improve data refresh logic in FluentDataGrid
This commit enhances the OnParametersSetAsync method in FluentDataGrid to
better handle state changes:
- Updated mustRefreshData calculation to consider pagination state changes
- Moved _lastRefreshedPaginationStateHash update earlier in RefreshDataCoreAsync
These changes ensure that:
1. The grid correctly detects when a refresh is needed due to pagination changes
2. The pagination state hash is captured at the start of the refresh process
This improvement helps maintain data consistency, especially in scenarios
with rapid state changes or when other events trigger state updates.
* Fix Grid data source change detection to avoid boxing
- Replace object casting and reference comparison with direct Equals method calls
- Separately compare Items and ItemsProvider with their last assigned values
- Eliminate false positive change detections caused by boxing
- Improve performance by reducing unnecessary data refreshes
* Don't use GetHashCode for comparison. TotalCount should NOT be a part of the comparison. As this is an output not an input.
* use _lastRefreshedPaginationState instead of _lastRefreshedPaginationStateHash
* Remove blank line
---------
Co-authored-by: Denis Voituron <[email protected]>
Co-authored-by: Vincent Baaij <[email protected]>
0 commit comments