{"action":"closed","issue":{"url":"https://api.github.com/repos/dojo/widget-core/issues/611","repository_url":"https://api.github.com/repos/dojo/widget-core","labels_url":"https://api.github.com/repos/dojo/widget-core/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/dojo/widget-core/issues/611/comments","events_url":"https://api.github.com/repos/dojo/widget-core/issues/611/events","html_url":"https://github.com/dojo/widget-core/issues/611","id":241653950,"number":611,"title":"Setting the \"initial state\" based on this properties","user":{"login":"sebilasse","id":750300,"avatar_url":"https://avatars0.githubusercontent.com/u/750300?v=4","gravatar_id":"","url":"https://api.github.com/users/sebilasse","html_url":"https://github.com/sebilasse","followers_url":"https://api.github.com/users/sebilasse/followers","following_url":"https://api.github.com/users/sebilasse/following{/other_user}","gists_url":"https://api.github.com/users/sebilasse/gists{/gist_id}","starred_url":"https://api.github.com/users/sebilasse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebilasse/subscriptions","organizations_url":"https://api.github.com/users/sebilasse/orgs","repos_url":"https://api.github.com/users/sebilasse/repos","events_url":"https://api.github.com/users/sebilasse/events{/privacy}","received_events_url":"https://api.github.com/users/sebilasse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-07-10T09:35:38Z","updated_at":"2017-07-20T10:11:57Z","closed_at":"2017-07-20T10:11:57Z","body":"First of all the question :\r\nWhen I need to set the initial state for any widget when it is rendered the first time (e.g. serverside)\r\nI would need a method which is _not_ invoked in any subsequent render, something like \"beforeFirstRender\".\r\nWhat is the correct way to set the state based on `this.properties` which comes from \"outside\" ?\r\n\r\nLet me describe :\r\n@agubler made a wonderful example to demonstrate https://github.com/dojo/widget-core/issues/609 and I am thankful.\r\nNow my semantic ui modules (like Accordion, Tab etc.) are working fine except when I need to set a class based on properties.\r\nMade a fork of the example to demonstrate what I mean, see\r\n--> https://github.com/sebilasse/adding-class \r\n\r\nIn src/App the line 94 is the problem below the \"TODO FIXME\" comment ..."}}
{"actor":{"display_login":"agubler"}}