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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support server-side rendering components with defaultOpen={true} #6243

Open
lithdew opened this issue Apr 22, 2024 · 0 comments
Open

Support server-side rendering components with defaultOpen={true} #6243

lithdew opened this issue Apr 22, 2024 · 0 comments

Comments

@lithdew
Copy link

lithdew commented Apr 22, 2024

Provide a general summary of the feature here

Components that are portaled into i.e. document.body, such as Modal, do not support server-side rendering.

馃 Expected Behavior?

That portaled components can be server-side rendered.

馃槸 Current Behavior

Portaled components are not server-side rendered.

馃拋 Possible Solution

Provide an option to potentially bypass the useIsSSR() check for portals for components that rely on portals.

馃敠 Context

I noticed that when defaultOpen={true} for modals, they are not server-side rendered. For a login dialog for example, it would be useful to have it server-side rendered should a user not be authenticated and to have its event listeners etc. attached when hydration occurs.

馃捇 Examples

No response

馃Б Your Company/Team

No response

馃暦 Tracking Issue

No response

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