-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for #254, How to have selected rows on table create with AsyncDataTableSource #272
Conversation
…ith AsyncDataTableSource In _fixSelectedState we need to check for an entry in _selectionRowKeys for the SelectionState.none In _fetchData we also need to ensure that _selectionRowKeys are maintained for the rows retreived from getRows
Fix for maxim-saplin#254, How to have selected rows on table create with AsyncDat…
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #272 +/- ##
==========================================
+ Coverage 95.87% 95.94% +0.06%
==========================================
Files 3 3
Lines 1140 1159 +19
==========================================
+ Hits 1093 1112 +19
Misses 47 47 ☔ View full report in Codecov by Sentry. |
I haven't given this enough though yet it might be a good point to keep the selection state out of data source (i.e. always ignore there data source selected), I don't know. Any suggestions? |
Well not at the moment, I'll have to dig deeper in the code. |
Conceptually the selection state looks like a transient one and shouldn't be part of entity persisted... |
I don't really see why this should not be persisted. |
In _fixSelectedState we need to check for an entry in _selectionRowKeys for the SelectionState.none
In _fetchData we also need to ensure that _selectionRowKeys are maintained for the rows retreived from getRows