-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
[with-emotion-10,11] Update emotion examples to v10 & v11 #9646
Conversation
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles
Commit: 313d5bf |
@@ -0,0 +1,2 @@ | |||
import createCache from '@emotion/cache' | |||
export const emotionCache = createCache() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this works, but if you dont need to configure cache you might want to just reuse the one in emotion
package
import { cache } from 'emotion'
``
Then you could also just use `emotion-server` instead of `create-emotion-server` (for simplicity).
@azizhk is this still work in progress? |
Sorry for the clutter @timneutkens |
Yeah - sorry for not delivering v11 yet. With holidays and all in December, it was hard to put much time into the project. There is not that much left to do, so hopefully, we should ship soon-ish. Keep in mind that we do this in our free time, so even if we don't have much left to do it still can take few more weeks. |
@Andarist you don't need to apologise. Respect for all open source developers. 🤗 |
@Andarist I've made the requested changes: |
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles
Commit: 7e12529 |
@@ -12,11 +12,12 @@ | |||
"author": "Thomas Greco", | |||
"license": "ISC", | |||
"dependencies": { | |||
"emotion": "^8.0.11", | |||
"emotion-server": "^8.0.11", | |||
"@emotion/core": "10.0.27", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this package.json probably shouldn't have the same "name"
as the one targeting v11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles
Commit: 91989bb |
Stats from current PRDefault Server ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Rendered Page Sizes
Serverless ModeGeneral
Client Bundles (main, webpack, commons)
Client Bundles (main, webpack, commons) Modern
Legacy Client Bundles (polyfills)
Client Pages
Client Pages Modern
Client Build Manifests
Serverless bundles
Commit: 7456eab |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Following https://emotion.sh/docs/migrating-to-emotion-10
I know that Emotion does support out of the box SSR now but it has some issues:
So that is why this is needed.