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

Why client side rendering is required in nextjs 13 for mui use #7128

Closed
2 tasks done
alexk345 opened this issue Dec 7, 2022 · 1 comment
Closed
2 tasks done

Why client side rendering is required in nextjs 13 for mui use #7128

alexk345 opened this issue Dec 7, 2022 · 1 comment
Labels
component: data grid This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module! dx Related to developers' experience support: question Community support but can be turned into an improvement

Comments

@alexk345
Copy link

alexk345 commented Dec 7, 2022

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

Why i have to use "use client" on all mui components in nextjs 13?
I did x-datagrid with my own crud api. I used "use client" directive. Its ok for that.

But i am trying to create dashboard layout and its asking "use client" on all mui libraries.

If we render all on client side ? its very bad practice and slow.

https://levelup.gitconnected.com/using-material-ui-with-next-js-13-and-tailwind-css-41c201855dcf
that is example. it has only 3 buttons. Why it need client side rendering?

I am new to react/nextjs/mui .... i am kinda stuck. Whole idea of using react is server side render everything except few which needed client side.

Who can help? I searched discord , gitter channels. No one responding.

Do you guys forum so i can follow up my question?

Examples 🌈

https://levelup.gitconnected.com/using-material-ui-with-next-js-13-and-tailwind-css-41c201855dcf

Motivation 🔦

No response

Order ID 💳 (optional)

No response

@alexk345 alexk345 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 7, 2022
@cherniavskii
Copy link
Member

Hey @alexk345
Please refer to mui/material-ui#34905 where the topic has been discussed, and mui/material-ui#34905 (comment) specifically

@cherniavskii cherniavskii added support: question Community support but can be turned into an improvement component: data grid This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module! dx Related to developers' experience and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module! dx Related to developers' experience support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

2 participants