File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Router, { withRouter } from 'next/router';
3
3
import Headroom from 'react-headroom' ;
4
4
import NProgress from 'nprogress' ;
5
5
import Link from 'next/link' ;
6
+ import { hydrate } from 'react-emotion' ;
6
7
7
8
import MetaInfo from '../../../config/meta-info' ;
8
9
import { Container } from '../../../utils/base.styles' ;
@@ -23,9 +24,9 @@ Router.onRouteChangeError = () => {
23
24
24
25
// Adds server generated styles to emotion cache.
25
26
// '__NEXT_DATA__.ids' is set in '_document.js'
26
- // if (typeof window !== 'undefined' && window.__NEXT_DATA__) {
27
- // hydrate(window.__NEXT_DATA__.ids);
28
- // }
27
+ if ( typeof window !== 'undefined' && window . __NEXT_DATA__ ) {
28
+ hydrate ( window . __NEXT_DATA__ . ids ) ;
29
+ }
29
30
30
31
class NavBar extends React . Component {
31
32
state = {
You can’t perform that action at this time.
0 commit comments