{"action":"created","issue":{"url":"https://api.github.com/repos/newtriks/generator-react-webpack/issues/174","labels_url":"https://api.github.com/repos/newtriks/generator-react-webpack/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/newtriks/generator-react-webpack/issues/174/comments","events_url":"https://api.github.com/repos/newtriks/generator-react-webpack/issues/174/events","html_url":"https://github.com/newtriks/generator-react-webpack/issues/174","id":120468853,"number":174,"title":"new Parse.Query doesn't work with react-webpack??","user":{"login":"nickbae91","id":12439968,"avatar_url":"https://avatars.githubusercontent.com/u/12439968?v=3","gravatar_id":"","url":"https://api.github.com/users/nickbae91","html_url":"https://github.com/nickbae91","followers_url":"https://api.github.com/users/nickbae91/followers","following_url":"https://api.github.com/users/nickbae91/following{/other_user}","gists_url":"https://api.github.com/users/nickbae91/gists{/gist_id}","starred_url":"https://api.github.com/users/nickbae91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickbae91/subscriptions","organizations_url":"https://api.github.com/users/nickbae91/orgs","repos_url":"https://api.github.com/users/nickbae91/repos","events_url":"https://api.github.com/users/nickbae91/events{/privacy}","received_events_url":"https://api.github.com/users/nickbae91/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-04T19:23:30Z","updated_at":"2015-12-09T05:11:44Z","closed_at":null,"body":"The updates for ParseComponent for ES6-based code states that all of the same methods in the ParseReact.Mixin should work the same way. However, the \"new Parse.Query\" doesn't seem to grab anything...? listItems seems always to be empty.\r\n\r\nNotes:\r\n a) I have verified the connection with Parse (using the \"TestObject\" code provided in the QuickStart section in Parse.com)\r\n\r\nThanks so much in advance! I'm new to web dev, and just happened to start with React & Parse, so please excuse if this is a silly mistake. (Below is the shortened code based on feedback below)\r\n\r\n```\r\nimport React from 'react';\r\nimport Parse from 'parse';\r\nimport ParseReact from 'parse-react';\r\nlet ParseComponent = ParseReact.Component(React);\r\n\r\nexport default class ExplorerWithNav extends ParseComponent {\r\n\r\nobserve() {\r\n  return {\r\n    listItems: (new Parse.Query('Focus')).ascending('name')\r\n  };\r\n}\r\n\r\nrender() {\r\n  let listitems;\r\n  let itemDescription;\r\n\r\n  if (this.data.listItems.length) {\r\n    listitems = (\r\n      <List subheader=\"Your Options\">\r\n      {this.data.listItems.map(function(item, i) {\r\n        return (\r\n          <ListItem\r\n            key={i}\r\n            primaryText={item.name} />\r\n        );\r\n      }, this)}\r\n      </List>\r\n    );\r\n  }\r\n\r\n  if (this.state.selecteditem.length > 0) {\r\n    itemDescription = <p>Hi!</p>;\r\n  }\r\n\r\n  return (\r\n    <div>\r\n      <div>\r\n        {itemDescription}\r\n      </div>\r\n      <div>\r\n        {listitems}\r\n      </div>\r\n    </div>\r\n  );\r\n}\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/newtriks/generator-react-webpack/issues/comments/163110284","html_url":"https://github.com/newtriks/generator-react-webpack/issues/174#issuecomment-163110284","issue_url":"https://api.github.com/repos/newtriks/generator-react-webpack/issues/174","id":163110284,"user":{"login":"nickbae91","id":12439968,"avatar_url":"https://avatars.githubusercontent.com/u/12439968?v=3","gravatar_id":"","url":"https://api.github.com/users/nickbae91","html_url":"https://github.com/nickbae91","followers_url":"https://api.github.com/users/nickbae91/followers","following_url":"https://api.github.com/users/nickbae91/following{/other_user}","gists_url":"https://api.github.com/users/nickbae91/gists{/gist_id}","starred_url":"https://api.github.com/users/nickbae91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickbae91/subscriptions","organizations_url":"https://api.github.com/users/nickbae91/orgs","repos_url":"https://api.github.com/users/nickbae91/repos","events_url":"https://api.github.com/users/nickbae91/events{/privacy}","received_events_url":"https://api.github.com/users/nickbae91/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T05:11:44Z","updated_at":"2015-12-09T05:11:44Z","body":"Sorry weblogixx I didn't realize that the post was way too long. I updated the description and code (above) for easier readability. I have also created a public repo (basically an empty webpack, with the libraries required included, and this single page):\r\nhttps://github.com/nickbae91/Explorerwithnav_parse-react/blob/master/src/components/Main.js\r\n\r\nPer your suggestion, I have implemented it in the dev.js as instructed, but still doesn't seem to work. Does this totally discount webpack as being the source of the issue? I guess part of the problem is that I understand too little of the 'under-the-hood' of the tools & libraries I'm using (i.e. webpack, ParseReact) and could only get far enough to identify that one of these two tools is the culprit."}}