text: import React from 'react';
  import IssuesDOM from './IssuesDOM'
  
  /*Redux*/
  // import { connect } from 'react-redux'
  // import { loadIssuesList } from '../../redux/actions/actions'
  /*Apollo*/
  import gql from "graphql-tag";
  import {Query} from "react-apollo";
  
  
  //Args - https://www.apollographql.com/docs/react/essentials/queries.html#data
  const GET_ISSUES = gql`
  query GET_ISSUES {
    issues {
      author {
        name
        email
      }
      createdAt
      count
      title
    }
  }
  `
  
  
  class Issues extends React.Component {
  
      componentWillReceiveProps(nextProps) {
          // console.log("props are going to be updated")
          // this.setState(() => {
          //   console.log("Issues being updated...");
          // });
      }
  
      componentDidMount() {
          // const { dispatch } = this.props;
          // dispatch(loadIssuesList(""));
      }
  
      render() {
          const {StoreIssues} = this.props;
  
          return (
              <Query query={GET_ISSUES}>
                  {({loading, error, data}) => {
                      // if (loading) return "Loading...";
                      // if (error) return `Error! ${error.message}`;
                      let issues = [];
                      if (typeof(data) !== 'undefined' && typeof(data.issues) !== 'undefined')
                          issues = data.issues;
                      return <IssuesDOM issues={issues} {...this.props}/>
                  }}
              </Query>
          )
      }
  }
  
  Issues.defaultProps = {
      "open_issues": "6",
      "close_issues": "3,592",
      "filters": ["Sort", "Asignee", "Milestones", "Projects", "Labels", "Author"]
      // "issues": []
  };
  
  // function select(state) {
  //   return {
  //     StoreIssues: state.Issues
  //   }
  // }
  
  export default Issues;
  
  // export default connect(select)(Issues);