Skip to content

Commit

Permalink
Pull device type from InitialContext (#953)
Browse files Browse the repository at this point in the history
The client controller is looking in the wrong place.
  • Loading branch information
gigabo authored Sep 25, 2017
1 parent 49cd35d commit e0c14a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-server/core/ClientController.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class ClientController extends EventEmitter {
}

this.context = buildContext(routes);
this.context.setDeviceType(dehydratedState.deviceType);
this.context.setDeviceType(dehydratedState.InitialContext.deviceType);
ReactServerAgent.cache().rehydrate(dehydratedState.InitialContext['ReactServerAgent.cache']);
this.mountNode = document.getElementById('content');

Expand Down

0 comments on commit e0c14a5

Please sign in to comment.