Replies: 1 comment 2 replies
-
Wouldn't that be problematic on the client? Either it's not going to hydrate correctly if we automatically apply this or it's going to be rendered in a weird/broken place until the prop is changed? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How it current work
Currently, it's okey to have
<Modal isOpen />
on SSR. But it's only compatible on syntax level. The Modal is open on client side.https://react-aria-ssr-modal.vercel.app/
https://github.com/QzCurious/react-aria-ssr-modal
Screen.Recording.2024-04-24.at.4.38.25.PM.mov
Since modal use portal under the hood, which is only supported on client side.
Feature Request
I'm wondering if we could have a
<Modal noPortal />
flag so that Modal just render at the position where it is. Then<Modal noPortal isOpen />
is supported during SSR.Beta Was this translation helpful? Give feedback.
All reactions