Skip to content

chore(datatable): remove duplicate setupGetInstanceId helper #16990

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

Merged

Conversation

tay1orjones
Copy link
Member

I noticed in #16988 that there are two nearly identical helpers named setupGetInstanceId. Both were added a long time ago, but within 4 months of one another. One is used throughout the codebase, and one is only used in DataTable.

The only difference is one is a function declaration, whereas the DataTable one is an arrow function.

Changelog

Changed

  • Update DataTable to use the right setupGetInstanceId

Removed

  • Remove duplicate setupGetInstanceId in DataTable tools

Testing / Reviewing

  • Is there any material difference between the function declaration and the arrow function?
  • Double check on all the DataTable stories that the id's used in classnames and whatnot are similar or the same with no regressions.

@tay1orjones tay1orjones requested a review from a team as a code owner July 17, 2024 21:09
Copy link

netlify bot commented Jul 17, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit fa281a7
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/6698331d137975000859af0d
😎 Deploy Preview https://deploy-preview-16990--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jul 17, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit fa281a7
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6698331d31ae150008a3e887
😎 Deploy Preview https://deploy-preview-16990--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jul 17, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 53cb218
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/66b62a0ed863b70008d5fe4c
😎 Deploy Preview https://deploy-preview-16990--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jul 17, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 53cb218
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/66b62a0e9220c6000895f551
😎 Deploy Preview https://deploy-preview-16990--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@guidari guidari added this pull request to the merge queue Aug 7, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 7, 2024
@kennylam kennylam enabled auto-merge August 9, 2024 14:39
@kennylam kennylam added this pull request to the merge queue Aug 9, 2024
Merged via the queue into carbon-design-system:main with commit e6d6fa4 Aug 9, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants