Skip to content

Conversation

chaance
Copy link
Member

@chaance chaance commented Jul 2, 2025

There have been a few other PRs (#3500, #3386) meant to address this issue, but I think this is the approach we ultimately want. We do want to check if the ref has changed on every render (as refs aren't reactive) but we need to do a defensive check that the ref values have actually changed.

Fixes #2717 and #3385.

Copy link

changeset-bot bot commented Jul 2, 2025

🦋 Changeset detected

Latest commit: 7bc9ff1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@radix-ui/react-popper Patch
@radix-ui/react-hover-card Patch
@radix-ui/react-menu Patch
@radix-ui/react-popover Patch
radix-ui Patch
@radix-ui/react-select Patch
@radix-ui/react-tooltip Patch
@radix-ui/react-context-menu Patch
@radix-ui/react-dropdown-menu Patch
@radix-ui/react-menubar Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chaance chaance merged commit 13e76f0 into main Jul 3, 2025
2 checks passed
@chaance chaance deleted the prevent-render-loop branch July 3, 2025 00:04
@bdsqqq
Copy link

bdsqqq commented Jul 4, 2025

Appreciate you @chaance !!!!

@jeff-an
Copy link

jeff-an commented Jul 12, 2025

Just to confirm, this is verifiable in the latest next release, 1.2.8-rc.1752166910601 ?

@Fanoflix
Copy link

Do we have any idea when this will be released? @chaance

@CHE1RON
Copy link

CHE1RON commented Aug 1, 2025

I'd love to see a patch release with this change, too! 🙏

@Kashi-Aida
Copy link

is this in the current Radix release yet?

@maiconcarraro
Copy link

@Kashi-Aida they just merged into stable here #3656

langleyd added a commit to element-hq/compound-web that referenced this pull request Sep 2, 2025
So that radix-ui/primitives#3614 gets included in downstream builds, like EW.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maximum update depth exceeded error with hover card
7 participants