{"action":"created","issue":{"url":"https://api.github.com/repos/goatslacker/alt/issues/374","labels_url":"https://api.github.com/repos/goatslacker/alt/issues/374/labels{/name}","comments_url":"https://api.github.com/repos/goatslacker/alt/issues/374/comments","events_url":"https://api.github.com/repos/goatslacker/alt/issues/374/events","html_url":"https://github.com/goatslacker/alt/issues/374","id":92744564,"number":374,"title":"FindDOMNode from store","user":{"login":"boyswan","id":7622401,"avatar_url":"https://avatars.githubusercontent.com/u/7622401?v=3","gravatar_id":"","url":"https://api.github.com/users/boyswan","html_url":"https://github.com/boyswan","followers_url":"https://api.github.com/users/boyswan/followers","following_url":"https://api.github.com/users/boyswan/following{/other_user}","gists_url":"https://api.github.com/users/boyswan/gists{/gist_id}","starred_url":"https://api.github.com/users/boyswan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boyswan/subscriptions","organizations_url":"https://api.github.com/users/boyswan/orgs","repos_url":"https://api.github.com/users/boyswan/repos","events_url":"https://api.github.com/users/boyswan/events{/privacy}","received_events_url":"https://api.github.com/users/boyswan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-02T21:59:43Z","updated_at":"2015-07-03T00:00:11Z","closed_at":null,"body":"Firstly thank you for alt, by far the most intuitive flux implementation! \r\n\r\nI'm trying to access a dom node from a store, however am only getting 'cannot read property of undefinded' (forgive me if this is more of a react question):\r\n\r\n```javascript\r\nimport React from 'react'\r\nimport alt from '../_alt';\r\nimport Actions from '../actions/actions';\r\nimport Velocity from 'velocity-animate/velocity';\r\nimport Body from '../modules/level_1/body/body1'\r\n\r\n\r\nclass Store {\r\n\r\n  constructor(){\r\n\r\n    this.bindListeners({\r\n      menuToggle: Actions.MENU_TOGGLE\r\n    });\r\n\r\n    this.menuStatus = false\r\n\r\n  }\r\n\r\n  menuToggle(){\r\n    if (!this.menuStatus){ \r\n      this.menuStatus = true;\r\n      Velocity(React.findDOMNode(Body.refs.wrap),({ width: '50px' }), 50) \r\n    } else {\r\n      this.menuStatus = false;\r\n    }\r\n  }\r\n\r\n}\r\n\r\nexport default alt.createStore(Store, 'Store');\r\n```\r\n\r\nComponent:\r\n\r\n```javascript\r\nimport React from 'react';\r\nimport connectToStores from 'alt/utils/connectToStores';\r\nimport Store from '../../../stores/store'\r\nimport Actions from '../../../actions/actions';\r\nimport Styles from './body1.css';\r\n\r\n\r\nimport Hero from '../../objects/hero/full_width' \r\n\r\nlet image = ['../../../../assets/full_width1.jpg', 'image']\r\n\r\n@connectToStores\r\nexport default class Body extends React.Component {\r\n\r\n  static getStores(){\r\n    return [Store];\r\n  }\r\n\r\n  static getPropsFromStores(){\r\n    return Store.getState();\r\n  }\r\n\r\n\trender(){\r\n\t\treturn (\r\n\t\t\t<div ref='wrap'>\r\n\t\t\t\t<Hero content={image} />\r\n\t\t\t</div>\r\n\t\t);\r\n\t}\r\n\r\n}\r\n```\r\n\r\nIs this at all possible? Or am I looking at the wrong way?\r\n\r\nAny help appreciated!\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/goatslacker/alt/issues/comments/118197221","html_url":"https://github.com/goatslacker/alt/issues/374#issuecomment-118197221","issue_url":"https://api.github.com/repos/goatslacker/alt/issues/374","id":118197221,"user":{"login":"goatslacker","id":10632,"avatar_url":"https://avatars.githubusercontent.com/u/10632?v=3","gravatar_id":"","url":"https://api.github.com/users/goatslacker","html_url":"https://github.com/goatslacker","followers_url":"https://api.github.com/users/goatslacker/followers","following_url":"https://api.github.com/users/goatslacker/following{/other_user}","gists_url":"https://api.github.com/users/goatslacker/gists{/gist_id}","starred_url":"https://api.github.com/users/goatslacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goatslacker/subscriptions","organizations_url":"https://api.github.com/users/goatslacker/orgs","repos_url":"https://api.github.com/users/goatslacker/repos","events_url":"https://api.github.com/users/goatslacker/events{/privacy}","received_events_url":"https://api.github.com/users/goatslacker/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T00:00:11Z","updated_at":"2015-07-03T00:00:11Z","body":"I don't think React works like that. You probably want to put the Velocity animation stuff in the component and leave the store to just manage the state."}}