Skip to content

Maximum update depth exceeded due to Transition #3655

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

Open
username14415 opened this issue Feb 24, 2025 · 2 comments
Open

Maximum update depth exceeded due to Transition #3655

username14415 opened this issue Feb 24, 2025 · 2 comments

Comments

@username14415
Copy link

I do not know why but in some cases I get Maximum update depth exceeded error due to Transition

import { Menu, MenuButton, MenuItems, MenuItem, MenuSection, MenuSeparator, Transition } from "@headlessui/react";
<Transition enter="dropdown-menu-enter transition ease-out duration-75" enterFrom="dropdown-menu-enterFrom" enterTo="dropdown-menu-enterTo" leave="dropdown-menu-leave" leaveFrom="dropdown-menu-leaveFrom" leaveTo="dropdown-menu-leaveTo">
...
</Transition>

I use the latest 2.2.0 react version
I've found similar issue: #3476 (comment)

@romaincapelle
Copy link

@username14415 I have had the same issue but for m1 mac user only. I delete all the transitions that were causing issue ( the one around Listbox ) I kept transition that were not causing an issue

@KeAnLL
Copy link

KeAnLL commented Mar 7, 2025

@username14415 I'm also having the similar issue. Takes some times to troubleshoot it.

For my case, I'm not using Transition component here in my Listbox component. However, I have the transition flag in the ListboxOptions which also cause the same issue you described here (see it in the attached screenshot). I disabled it by commenting it out.
Image

Hope this helps you and other peers that are reading this thread.

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

3 participants