From e0c14a5d86c2f989c02ec0e65143e44be4beb7b9 Mon Sep 17 00:00:00 2001 From: Bo Borgerson Date: Mon, 25 Sep 2017 16:25:34 -0700 Subject: [PATCH] Pull device type from InitialContext (#953) The client controller is looking in the wrong place. --- packages/react-server/core/ClientController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-server/core/ClientController.js b/packages/react-server/core/ClientController.js index b885d4e6e..98f3b74c0 100644 --- a/packages/react-server/core/ClientController.js +++ b/packages/react-server/core/ClientController.js @@ -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');