{"action":"created","issue":{"url":"https://api.github.com/repos/infernojs/inferno/issues/771","repository_url":"https://api.github.com/repos/infernojs/inferno","labels_url":"https://api.github.com/repos/infernojs/inferno/issues/771/labels{/name}","comments_url":"https://api.github.com/repos/infernojs/inferno/issues/771/comments","events_url":"https://api.github.com/repos/infernojs/inferno/issues/771/events","html_url":"https://github.com/infernojs/inferno/issues/771","id":203489752,"number":771,"title":"Latest mobx-inferno and inferno throwing on start","user":{"login":"mrjjwright","id":4343,"avatar_url":"https://avatars.githubusercontent.com/u/4343?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjjwright","html_url":"https://github.com/mrjjwright","followers_url":"https://api.github.com/users/mrjjwright/followers","following_url":"https://api.github.com/users/mrjjwright/following{/other_user}","gists_url":"https://api.github.com/users/mrjjwright/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjjwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjjwright/subscriptions","organizations_url":"https://api.github.com/users/mrjjwright/orgs","repos_url":"https://api.github.com/users/mrjjwright/repos","events_url":"https://api.github.com/users/mrjjwright/events{/privacy}","received_events_url":"https://api.github.com/users/mrjjwright/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-26T21:10:31Z","updated_at":"2017-01-26T22:37:13Z","closed_at":null,"body":"After launching either from nwb or my app I get the below when loading the mobx `observer`.   Pretty sure it's coming from this [commit](https://github.com/infernojs/inferno/commit/ae28994f69bc4e59e52e9bccf77122574af0dcb0).\r\n\r\n\r\n```es6\r\nthrow new Error('`inferno-dom` has been deprecated in 1.0! Use core `inferno` instead!')\r\n```\r\n\r\n```es6\r\nimport Component from \"inferno-component\";\r\nimport {observable} from \"mobx\";\r\nimport {observer} from \"mobx-inferno\";\r\n\r\nclass Store {\r\n  @observable\r\n  john = \"hi\";\r\n}\r\n\r\nvar store = new Store();\r\n\r\n@observer\r\nclass Clock extends Component {\r\n  constructor() {\r\n    super();\r\n    // set initial time:\r\n    this.state = {time: Date.now()};\r\n  }\r\n\r\n  componentDidMount() {\r\n    // update time every second\r\n    this.timer = setInterval(\r\n      () => {\r\n        this.setState({time: Date.now()});\r\n      },\r\n      1000\r\n    );\r\n  }\r\n\r\n  componentWillUnmount() {\r\n    // stop when not renderable\r\n    clearInterval(this.timer);\r\n  }\r\n\r\n  render() {\r\n    let time = new Date(this.state.time).toLocaleTimeString();\r\n    return <span>{time}{store.john}</span>;\r\n  }\r\n}\r\n\r\nexport default Clock;\r\n```"},"comment":{"url":"https://api.github.com/repos/infernojs/inferno/issues/comments/275536170","html_url":"https://github.com/infernojs/inferno/issues/771#issuecomment-275536170","issue_url":"https://api.github.com/repos/infernojs/inferno/issues/771","id":275536170,"user":{"login":"mrjjwright","id":4343,"avatar_url":"https://avatars.githubusercontent.com/u/4343?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjjwright","html_url":"https://github.com/mrjjwright","followers_url":"https://api.github.com/users/mrjjwright/followers","following_url":"https://api.github.com/users/mrjjwright/following{/other_user}","gists_url":"https://api.github.com/users/mrjjwright/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjjwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjjwright/subscriptions","organizations_url":"https://api.github.com/users/mrjjwright/orgs","repos_url":"https://api.github.com/users/mrjjwright/repos","events_url":"https://api.github.com/users/mrjjwright/events{/privacy}","received_events_url":"https://api.github.com/users/mrjjwright/received_events","type":"User","site_admin":false},"created_at":"2017-01-26T22:37:13Z","updated_at":"2017-01-26T22:37:13Z","body":"I am working around it with an in app copy of `makeReactive.ts` that I export as `observe`  and simply calling\r\n\r\n```es6\r\nvar Inferno = require ('inferno')\r\n```\r\nbefore I use it."}}
{"actor":{"display_login":"mrjjwright"}}