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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core:SSR support #5642

Closed
sciutand opened this issue Dec 24, 2023 · 1 comment
Closed

Core:SSR support #5642

sciutand opened this issue Dec 24, 2023 · 1 comment
Labels
question Issue contains a question about the use of PrimeReact components or the products it supports

Comments

@sciutand
Copy link

sciutand commented Dec 24, 2023

Describe the bug

The documentation says that primereact has SSR support

PrimeReact has first class support for SSR and ....

However I cannot find any documentation on how to support SSR.

The core ccs has this:

 * The primereact[.min].css has been deprecated. In order not to break existing projects, it is currently included in the build as an empty file.

with all the styles injected in the head at runtime.
How exactly does primereact support SSR?.

Reproducer

No response

PrimeReact version

^10.2.1

React version

18.x

Language

TypeScript

Build / Runtime

Remix

Browser(s)

No response

Steps to reproduce the behavior

Start any project. Core styling are only injected at runtime (this also breaks react hydration) since the core css file has been deprecated.

Expected behavior

Styles should be present in the document load, or provide a solution to get the style on the server render pass.

@sciutand sciutand added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 24, 2023
@sciutand sciutand changed the title Core:SSR suuport Core:SSR support Dec 24, 2023
@melloware
Copy link
Member

melloware commented Dec 24, 2023

@sciutand since PR10 there are two open SSR issues: Type: SSR Issue related to server side rendering

#5127

#4675

There is also this issue you referece with CSS and Flash of Unstyled Content: #5188

@melloware melloware closed this as not planned Won't fix, can't repro, duplicate, stale Dec 24, 2023
@melloware melloware added question Issue contains a question about the use of PrimeReact components or the products it supports and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issue contains a question about the use of PrimeReact components or the products it supports
Projects
None yet
Development

No branches or pull requests

2 participants