From acdfa2840f867e686471a8e9ac3f29353fab7dd1 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 27 Oct 2017 10:10:49 -0400 Subject: hi --- lib/withData.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'lib/withData.js') diff --git a/lib/withData.js b/lib/withData.js index 6b37792..ab9fe78 100644 --- a/lib/withData.js +++ b/lib/withData.js @@ -49,14 +49,7 @@ export default ComposedComponent => Head.rewind(); // Extract query data from the Apollo store - const state = apollo.getInitialState(); - - serverState = { - apollo: { - // Only include the Apollo data state - data: state.data, - }, - }; + serverState = apollo.cache.extract(); } return { -- cgit v1.3