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

[system] Polish @mui/material-nextjs #40473

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Jan 7, 2024

Light polish on the package.


Off-topic. It feels like we should also have a @mui/system-nextjs package. Today, all the logic is about @mui/system. The dependency on @mui/material will only start to make sense if we have components integration. But what is there to integrate with? Link, that's it?

Sure, we could also add a linear progress bar between pages, but it doesn't feel like something that should be hidden behind an npm package.

@oliviertassinari oliviertassinari changed the title [system] Remove wrong @mui/material dependency [system] Fix @mui/material-nextjs dependencies Jan 7, 2024
@mui-bot
Copy link

mui-bot commented Jan 7, 2024

Netlify deploy preview

https://deploy-preview-40473--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against b7f0616

@oliviertassinari oliviertassinari changed the title [system] Fix @mui/material-nextjs dependencies [system] Polish @mui/material-nextjs Jan 7, 2024
@oliviertassinari oliviertassinari added the package: system Specific to @mui/system label Jan 7, 2024
@@ -1,2 +1 @@
'use client';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we should only "use client" where it's required. There is no client-side React API used in this module.

import { CacheProvider as DefaultCacheProvider } from '@emotion/react';
import type { EmotionCache, Options as OptionsOfCreateCache } from '@emotion/cache';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate import.

@siriwatknp
Copy link
Member

@mui/material will only start to make sense if we have components integration

Yes, that is the goal. #40265

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@oliviertassinari oliviertassinari merged commit 1d36cfc into mui:master Jan 15, 2024
20 checks passed
@oliviertassinari oliviertassinari deleted the remove-dead-dependency branch January 15, 2024 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: system Specific to @mui/system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants