Fixed the component re-rendering issue which causes the Entity test failure#27355
Merged
Fixed the component re-rendering issue which causes the Entity test failure#27355
Conversation
Contributor
ShaileshParmar11
previously approved these changes
Apr 14, 2026
siddhant1
previously approved these changes
Apr 14, 2026
Contributor
🟡 Playwright Results — all passed (32 flaky)✅ 3624 passed · ❌ 0 failed · 🟡 32 flaky · ⏭️ 84 skipped
🟡 32 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
1d80c0b
Code Review ✅ ApprovedComponent lifecycle management has been corrected to prevent unnecessary re-renders, resolving the intermittent Entity test failures. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
anuj-kumary
approved these changes
Apr 14, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Describe your changes:
config.toEntityReference(selectedItems) was called inline in JSX, creating a new array reference on every render. This triggered SelectableList useEffect([selectedItems]) , which reset selectedItemsInternal back from the prop — overwriting the empty Map set by "clear all" before Update was clicked. useMemo stabilizes the reference so the effect only fires when the actual tag data changes.
Fixes
I worked on ... because ...
Screen.Recording.2026-04-14.at.5.18.14.PM.mov
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>