{"action":"created","issue":{"url":"https://api.github.com/repos/goatslacker/alt/issues/448","labels_url":"https://api.github.com/repos/goatslacker/alt/issues/448/labels{/name}","comments_url":"https://api.github.com/repos/goatslacker/alt/issues/448/comments","events_url":"https://api.github.com/repos/goatslacker/alt/issues/448/events","html_url":"https://github.com/goatslacker/alt/pull/448","id":99740560,"number":448,"title":"Set state in mixinContainer after mounting","user":{"login":"alexlande","id":808159,"avatar_url":"https://avatars.githubusercontent.com/u/808159?v=3","gravatar_id":"","url":"https://api.github.com/users/alexlande","html_url":"https://github.com/alexlande","followers_url":"https://api.github.com/users/alexlande/followers","following_url":"https://api.github.com/users/alexlande/following{/other_user}","gists_url":"https://api.github.com/users/alexlande/gists{/gist_id}","starred_url":"https://api.github.com/users/alexlande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexlande/subscriptions","organizations_url":"https://api.github.com/users/alexlande/orgs","repos_url":"https://api.github.com/users/alexlande/repos","events_url":"https://api.github.com/users/alexlande/events{/privacy}","received_events_url":"https://api.github.com/users/alexlande/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-07T22:26:05Z","updated_at":"2015-08-28T06:06:44Z","closed_at":"2015-08-28T06:06:44Z","pull_request":{"url":"https://api.github.com/repos/goatslacker/alt/pulls/448","html_url":"https://github.com/goatslacker/alt/pull/448","diff_url":"https://github.com/goatslacker/alt/pull/448.diff","patch_url":"https://github.com/goatslacker/alt/pull/448.patch"},"body":"Hey! Thanks for Alt, it's rad. This feels sort of dumb but wanted to run it by you. \r\n\r\nI hit this edge case today-- I have a component that renders a Google map. After mounting it persists a reference to the map instance in a store. My components are inside an `AltContainer`, with a structure like this:\r\n\r\n```\r\nPage\r\n  > AltContainer\r\n    > Map\r\n    > OtherStuff\r\n```\r\n\r\nThe AltContainer mounts after the Map does, which means that in between the container's `getInitialState` and subscribing to my store, the store's state changes, and the container isn't aware of it.\r\n\r\nThis PR adds an `altSetState` call after the container mounts, which solves this problem by causing an additional render, which is a bummer.\r\n\r\nMy current workaround in my app is to defer the action that the map fires, which makes me feel bad about myself but works."},"comment":{"url":"https://api.github.com/repos/goatslacker/alt/issues/comments/135643437","html_url":"https://github.com/goatslacker/alt/pull/448#issuecomment-135643437","issue_url":"https://api.github.com/repos/goatslacker/alt/issues/448","id":135643437,"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-08-28T06:06:44Z","updated_at":"2015-08-28T06:06:44Z","body":"Added an onMount handler 50eb8041bf5fb9e2bbbd1ae8f28fd84f6083740e"}}