diff options
| author | Wes Bos <wesbos@gmail.com> | 2017-10-27 10:10:49 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2017-10-27 10:10:49 -0400 |
| commit | acdfa2840f867e686471a8e9ac3f29353fab7dd1 (patch) | |
| tree | 1a069ce11e145d9b286084221951272511debbdf /lib/withData.js | |
| parent | 6f44adb59d3542eb21e55e0aae789b1fcc7cf8f1 (diff) | |
hi
Diffstat (limited to 'lib/withData.js')
| -rw-r--r-- | lib/withData.js | 9 |
1 files changed, 1 insertions, 8 deletions
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 { |
