formaat-design / reshaped

Community repository for storing examples, reporting issues and tracking roadmap
https://reshaped.so
97 stars 3 forks source link

Initial page load flickers when using NextJS 14 in SSR scenario #206

Closed hahahumble closed 6 months ago

hahahumble commented 6 months ago

Describe the bug Initial page load flickers when using NextJS 14 in Server Side Rendering

Screenshots

Environment:

blvdmitry commented 6 months ago

Hey there, can you make sure you have data-rs-theme attribute on your html element? That way all variables will be available even during the SSR

https://reshaped.so/docs/getting-started/react/installation#server-side-rendering

hahahumble commented 6 months ago

Thank you for your response, this solved my issue.