Skip to content
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

feat(datagrid): use only clrDgItemsTrackBy for selection tracking #1144

Merged

Conversation

kevinbuhmann
Copy link
Member

@kevinbuhmann kevinbuhmann commented Jan 19, 2024

I removed two tests that appeared to test an optimization to skip work if there are no items. These optimizations are invalid because it may appear that the datagrid has no items when it just doesn't have items yet.

CDE-71

BREAKING CHANGE: The row iterator trackBy function will no longer be used for selection tracking. Update your code to pass clrDgItemsTrackBy to the clr-datagrid component if you pass trackBy to the row iterator. Note that the clrDgItemsTrackBy signature does not include the element index.

I removed two tests that appeared to test an optimization to skip work
if there are no items. These optimizations are invalid because it may
appear that the datagrid has no items when it just doesn't have items yet.

BREAKING CHANGE: The row iterator `trackBy` function will no longer be
used for selection tracking. Update your code to pass `clrDgItemsTrackBy`
to the `clr-datagrid` component if you pass `trackBy` to the row iterator.
Copy link
Contributor

github-actions bot commented Jan 19, 2024

👋 @kevinbuhmann,

  • 🙏 The Clarity team thanks you for opening a pull request
  • 🎉 The build for this PR has succeeded
  • 🔍 The PR is now ready for review
  • 🍿 In the meantime, view a preview of this PR
  • 🖐 You can always follow up here. If you're a VMware employee, you can also reach us on our internal #clarity-support Slack channel

Thank you,

🤖 Clarity Release Bot

@kevinbuhmann kevinbuhmann merged commit a569463 into next Jan 23, 2024
5 checks passed
@kevinbuhmann kevinbuhmann deleted the kevin/breaking/remove-datagrid-iterator-trackby-fallback branch January 23, 2024 14:50
Copy link
Contributor

🎉 This PR is included in version 17.0.0-beta.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Contributor

github-actions bot commented Feb 9, 2024

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed PRs after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants