You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that this error only happens on a hard-reload (it's happening during hydration) when defaultOpen is set to true or if defaultOpen is set to false, you can set static to true in Disclosure.Panel. There seems to be a state change in the Disclosure component that happens before React has finished hydrating. Possibly because the component does the state change during render instead of in an effect?
As the error message mentions, perhaps this state changed should be wrapped in startTransition?
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v1.7.8
What browser are you using?
Chrome
Reproduction URL
https://github.com/migueloller/headless-ui-disclosure-suspense-repro
Describe your issue
Using a
Disclosure
component withdefaultOpen
set totrue
with a Suspense boundary on the panel will result in the following error:The text was updated successfully, but these errors were encountered: