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

fix: onChangeAliasMap is triggered on every render #2370

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

yomybaby
Copy link
Member

@yomybaby yomybaby commented Apr 26, 2024

This PR resolves #2368.
This is a side effect of #2359

Before this PR, VFolderTable was triggering onChangeSelectedRowKeys on every render if the parent component passed selectedRowKeys as a new instance of an array. VFolderTable should consider this scenario.

Checklist: (if applicable)

  • Mention to the original issue
  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup)
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

@yomybaby yomybaby self-assigned this Apr 26, 2024
@github-actions github-actions bot added the size:XS ~10 LoC label Apr 26, 2024
Copy link

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements 3% 118/3935
🔴 Branches 3.27% 87/2662
🔴 Functions 1.46% 19/1302
🔴 Lines 2.95% 114/3858

Test suite run success

32 tests passing in 4 suites.

Report generated by 🧪jest coverage report action from 8276e89

Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yomybaby yomybaby merged commit 4bd598f into main Apr 26, 2024
8 checks passed
@yomybaby yomybaby deleted the fix/vfoldertable-onChangeAliasMap branch April 26, 2024 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS ~10 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Neo session launcher validation failed error when launch a new session
2 participants