Replies: 2 comments 3 replies
-
Can you share a minimal reproduction for this? Sounds like the dialog was somehow in a wrong state. |
Beta Was this translation helpful? Give feedback.
-
I ran into the same issue, and it was caused by a The close button actually unmounted the entire widget written in SolidJS, but I'm pretty sure that the same would happen if the portal was just conditionally rendered. I tried to make a repro on StackBlitz but I couldn't repro it there. Like I said, it's probably a race condition. What I did was wrap the dismount in a |
Beta Was this translation helpful? Give feedback.
-
Any idea what can trigger this error?
It happens to me more 100% of the time in the following scenario.
A dialog opens via effect (using an
open
function from the Dialog.Context), then I close it, and then when I change something in my app that triggers the global suspense boundary so I get a black screen for a second (as all app depends on that), I have a blink of the Backdrop once I'm exiting fallback to the content with the backdrop staying on the screen eventually making the site unusable.I thought that it's this effect that gets triggered for some reason and then I get into the weird state of not having Dialog open but Backdrop only. But it's not getting triggered.
What's interesting, is that if I just open this same Dialog using the button trigger, and not the
open
function, and then do the same state transition that I described above, nothing like that happens.Beta Was this translation helpful? Give feedback.
All reactions