mui / mui/base-ui

[dialog] Server-side rendering an open dialog

Open
#3,326 2 comments 2 reactions 0 assignees View on GitHub
component: dialog support: question waiting for 👍
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

Right now, it doesn't seem to be possible to render an open dialog with server-side rendering. Client JavaScript is required for the dialog to appear. This can be verified by rendering a `Dialog.Root` with `defaultOpen` and disabling the browser JavaScript: it won't appear in that case.

Is there a way to make it appear? The goal is to reduce LCP and make page interactive quicker if we need to render a modal on top of the page right on page load.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.