Skip to content

Commit

Permalink
Bypass hydrator
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Dec 7, 2019
1 parent dff328e commit 71870ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/hydrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ class Hydrator extends Component {
_render(props) {
const { Child } = this;
// hydrate on first run, then normal renders thereafter
const doRender = process.env.NODE_ENV!=='production' || this.hydrated ? render : hydrate;
doRender(
const doRender =
process.env.NODE_ENV !== 'production' || this.hydrated ? render : hydrate;
render(
<ContextProvider context={this.context}>
<Child {...props} />
</ContextProvider>,
Expand Down

0 comments on commit 71870ed

Please sign in to comment.