From 347fe8bf2b8551fedd5cc3d827c0d1e34ed37562 Mon Sep 17 00:00:00 2001 From: David Erwin Date: Wed, 18 Jan 2017 16:15:40 -0500 Subject: [PATCH] Showing graphql data in console --- client/coral-plugin-stream/Stream.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client/coral-plugin-stream/Stream.js b/client/coral-plugin-stream/Stream.js index 2b87c2a2c..14187c01c 100644 --- a/client/coral-plugin-stream/Stream.js +++ b/client/coral-plugin-stream/Stream.js @@ -2,7 +2,7 @@ import React, {Component} from 'react'; import {graphql} from 'react-apollo'; import gql from 'graphql-tag'; -const assetID = 'c82f9fbb-5cf6-4eeb-bde5-25bae78227d2'; +const assetID = ''; // MyComponent is a "presentational" or apollo-unaware component, // It could be a simple React class: @@ -12,11 +12,8 @@ class Stream extends Component { super(props); } - componentWillUpdate() { - console.log(this.props); - } - render() { + console.log(this.props); return
...
; } }