Skip to content

checking the affect of removing @emotion/react#1

Open
gavriguy wants to merge 1 commit intoAnishpras:material-ui-examplefrom
gavriguy:pr/1441-question
Open

checking the affect of removing @emotion/react#1
gavriguy wants to merge 1 commit intoAnishpras:material-ui-examplefrom
gavriguy:pr/1441-question

Conversation

@gavriguy
Copy link
Copy Markdown

Hi this PR is more a question than a suggestion.

I there is some code duplication between entry.server.tsx & entry.client.tsx, I was thinking that maybe a good solution would be to move everything to root.tsx.

After I read you code I realized that you implemented it the way you did you wanted to use the @emotion/cache as described here https://mui.com/guides/server-rendering/

I wanted to test the affect of removing @emotion/cache altogether to release that it works without it and all the MUI styles are injected in the HTML.

Is that a Remix optimization? if so maybe you can drop the use of @emotion/cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant