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

transition / suspense broken with Popover (and propably Dialog, DropdownMenu ect) #3376

Open
Torsten85 opened this issue Feb 11, 2025 · 0 comments

Comments

@Torsten85
Copy link

Bug report

Current Behavior

When opening a popover where the content triggers a suspense boundary, useTransition does not work

Expected behavior

the transition should be in a pending state until the suspense boundary gets resolved

Reproducible example

https://codesandbox.io/p/sandbox/j78dpn

You'll find two buttons:

Open Default Content
is a simple react show toggle via useState, the transition is correctly in a pending state, the suspense boundary does not render

Open Radix Popover
a very simple popover implementation. The transition is never pending, the suspence boundary gets rendered
alreay tried changing the open state via the same button from the Default Content example, but did not work.

Suggested solution

no realy clue. Do you toggle the display stated delayed in a useEffect maybe? That would prevent the transition from working correctly.

Your environment

radix-ui @ 1.1.3

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