Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUpdate `examples/with-emotion` to remove _document.js? And upgrade to @emotion/cache? #17626
Comments
|
cc @timneutkens |
|
Switching to Before (custom document): Lighthouse Then again, I only use |


Feature request
Is your feature request related to a problem? Please describe.
The
examples/with-emotionexample is using Emotion 10.According to the Emotion SSR docs, the
_document.jsfile is no longer required:Suggested Solution: Maybe this file can be removed?
Secondly, I noticed that the cache is using the original
emotionas a dependency:next.js/examples/with-emotion/pages/_app.js
Line 5 in dd264f5
Suggested Solution: Maybe this can be switched to use the
createCachefunction from@emotion/cacheinstead?Describe the solution you'd like
Solutions suggested above.
Describe alternatives you've considered
Leave things how they are (more code, but maybe still works?)