Skip to content

Prevent render loop in Popper #3614

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
merged 1 commit into from
Jul 3, 2025
Merged

Prevent render loop in Popper #3614

merged 1 commit into from
Jul 3, 2025

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 ?

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
3 participants