SSR for Dialog (no unmount) #1545
Unanswered
alexanderbluhm
asked this question in
Help
Replies: 1 comment 1 reply
-
Hey @alexanderbluhm,
There are other discussions where we've started talking about supporting some lazy mounting options for more components: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Since I have some SEO relevant parts in my sidebar menu I would like it to be statically generated (Gatsby).
So, I just want a slide-in with focus, keyboard support etc. However, it shouldn't be unmounted but just slided out.
I tried to utilize
forceMount
but I run into issues with it.Here is a minimal reproduction: https://codesandbox.io/s/peaceful-ishizaka-6dhihg?file=/src/App.js:0-904
It works fine but when I focus on the close button and hit "Enter", the focus is trapped inside the closed Dialog.
In addition, it seems that the Dialog is not statically generated by Gatsby and I am not sure why.
Can anyone help here?
Thanks in advance.
(I am using React 17 and version
0.1.7
of the Radix Dialog.Beta Was this translation helpful? Give feedback.
All reactions