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

Contenxt menu breaks with infinite re-render. Error: Maximum update depth exceeded. #3385

Open
Randulfe opened this issue Feb 17, 2025 · 0 comments

Comments

@Randulfe
Copy link

Bug report

Current Behavior

Radix UI context menu breaks from an infinite re-render when using with react flow or in any context where the component with such context menu can be moved around.

There are also other reported issues resulting in the same error that have been ignored in this bug marked as closed: #2717 that many others are reporting

Image

Expected behavior

When dragging and moving the element that has react context menu it should be able to carry on without reaching the error.

Reproducible example

Create a react flow container or a canvas. Place an element containing react context menu. Move it around, after a few ms it will break.

Suggested solution

Needs to be investigated as there are several scenarios where it breaks in this way

Additional context

Your environment

Software Name(s) Version
Radix Package(s) @radix-ui/react-context-menu 2.2.6
React n/a latest
Browser All browsers n/a
Node n/a 20.17
npm/yarn npm 11
Operating System Windows 11
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

No branches or pull requests

1 participant