{"action":"created","issue":{"url":"https://api.github.com/repos/mweststrate/mobservable/issues/29","labels_url":"https://api.github.com/repos/mweststrate/mobservable/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/mweststrate/mobservable/issues/29/comments","events_url":"https://api.github.com/repos/mweststrate/mobservable/issues/29/events","html_url":"https://github.com/mweststrate/mobservable/issues/29","id":107270697,"number":29,"title":"@reactiveComponent seems to cause, \"Cannot call a class as a function\".","user":{"login":"dschalk","id":2214003,"avatar_url":"https://avatars.githubusercontent.com/u/2214003?v=3","gravatar_id":"","url":"https://api.github.com/users/dschalk","html_url":"https://github.com/dschalk","followers_url":"https://api.github.com/users/dschalk/followers","following_url":"https://api.github.com/users/dschalk/following{/other_user}","gists_url":"https://api.github.com/users/dschalk/gists{/gist_id}","starred_url":"https://api.github.com/users/dschalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschalk/subscriptions","organizations_url":"https://api.github.com/users/dschalk/orgs","repos_url":"https://api.github.com/users/dschalk/repos","events_url":"https://api.github.com/users/dschalk/events{/privacy}","received_events_url":"https://api.github.com/users/dschalk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-18T20:20:37Z","updated_at":"2015-09-18T21:06:18Z","closed_at":null,"body":"Running webpack on the file named B2.jsx produced a well-functioning bundle.js file until a few days ago.     Now, @reactiveComponent seems to be causing browsers to crash, reporting:\r\n[mobservable.view '[m#1]'] Caught error during computation: TypeError: Cannot call a class as a function at classCallCheck (http://localhost:3000/bundle.js:64:100) at B2 (http://localhost:3000/bundle.js:85:6) at t.createClass.render ...\r\n\r\nAll of the code, along with the complete error message, is at  [https://github.com/dschalk/cow](https://github.com/dschalk/cow). This is B2.jsx:\r\n\r\n ```javascript\r\n 'use strict'\r\n import React from'react';\r\n import mobservable from 'mobservable';\r\n import {reactiveComponent} from 'mobservable-react';\r\n export {B2};\r\n\r\n // @reactiveComponent class B2 extends React.Component {\r\n class B2 extends React.Component {\r\n   constructor(props) {\r\n     super(props);\r\n   }\r\n   render = () => {\r\n   return (\r\n     <div> <h1>Cow</h1> </div>\r\n   )}\r\n }\r\n React.render(<B2 key='B2' />, document.getElementById('divSix'))\r\n ```\r\nAs you see, the last thing I did to make it work was to comment out @reactiveComponent."},"comment":{"url":"https://api.github.com/repos/mweststrate/mobservable/issues/comments/141568884","html_url":"https://github.com/mweststrate/mobservable/issues/29#issuecomment-141568884","issue_url":"https://api.github.com/repos/mweststrate/mobservable/issues/29","id":141568884,"user":{"login":"dschalk","id":2214003,"avatar_url":"https://avatars.githubusercontent.com/u/2214003?v=3","gravatar_id":"","url":"https://api.github.com/users/dschalk","html_url":"https://github.com/dschalk","followers_url":"https://api.github.com/users/dschalk/followers","following_url":"https://api.github.com/users/dschalk/following{/other_user}","gists_url":"https://api.github.com/users/dschalk/gists{/gist_id}","starred_url":"https://api.github.com/users/dschalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschalk/subscriptions","organizations_url":"https://api.github.com/users/dschalk/orgs","repos_url":"https://api.github.com/users/dschalk/repos","events_url":"https://api.github.com/users/dschalk/events{/privacy}","received_events_url":"https://api.github.com/users/dschalk/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T21:06:18Z","updated_at":"2015-09-18T21:06:18Z","body":"I cloned [https://github.com/dschalk/websockets-react]([https://github.com/dschalk/websockets-react), ran \"npm install\" and then \"webpack\". This used to cause the game of Score to run in browsers, but now I get:\r\n[mobservable.value '.Sbackground'] It is not allowed to change the state during the computation of a reactive view. (stack size is 2, active view: \"ComputedObservable[.groupWatch:undefined] function groupWatch() ... It still works with the \"bundle.js\" file that comes with the clone, which was made three weeks ago.\r\n\r\nI didn't use @reactiveComponent. Instead, I defined my main function as B2X and at the end of the file, I ran:\r\n```javascript\r\nlet B2 = mobservable.reactiveComponent(B2X);\r\nReact.render(<B2 key='B2' />, document.getElementById('divSix'));\r\n```\r\nI was showcasing the usefulness of Mobservable. Now, all of the code I published results only in error messages. Did Mobservable updates break my apps? If so, what can I do to make them work again. If not, any helpful hints would be much appreciated. I don't understand this."}}