-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
recover from exception for server side rendering #1141
Comments
Right now recreating cache for each request fixes the issue import { CacheProvider } from '@emotion/core';
import createCache from '@emotion/cache';
<CacheProvider value={createCache()}>
<App />
</CacheProvider> |
wangzuo
changed the title
recover from exception for ssr rendering
recover from exception for server side rendering
Dec 28, 2018
This is because of a bug in React. facebook/react#14502 |
@mitchellhamilton thank you for the quick feedback, just wondering if anything missing from the |
Nope, that’ll work fine. |
Thank you, really like the new emotion 10! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a simple test case for the problem:
For example, reach-router handles redirect by catching a redirect error on server side. link. It seems once the rendering fails on server side, later rendering will output no inline
<style>
tag due to the emotion cache. Is there any way to get around this problem?The text was updated successfully, but these errors were encountered: