{"action":"created","issue":{"url":"https://api.github.com/repos/eloytoro/react-screen-size/issues/3","repository_url":"https://api.github.com/repos/eloytoro/react-screen-size","labels_url":"https://api.github.com/repos/eloytoro/react-screen-size/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/eloytoro/react-screen-size/issues/3/comments","events_url":"https://api.github.com/repos/eloytoro/react-screen-size/issues/3/events","html_url":"https://github.com/eloytoro/react-screen-size/issues/3","id":356677204,"node_id":"MDU6SXNzdWUzNTY2NzcyMDQ=","number":3,"title":"cannot get screen size on init","user":{"login":"marklai1998","id":18364699,"node_id":"MDQ6VXNlcjE4MzY0Njk5","avatar_url":"https://avatars2.githubusercontent.com/u/18364699?v=4","gravatar_id":"","url":"https://api.github.com/users/marklai1998","html_url":"https://github.com/marklai1998","followers_url":"https://api.github.com/users/marklai1998/followers","following_url":"https://api.github.com/users/marklai1998/following{/other_user}","gists_url":"https://api.github.com/users/marklai1998/gists{/gist_id}","starred_url":"https://api.github.com/users/marklai1998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marklai1998/subscriptions","organizations_url":"https://api.github.com/users/marklai1998/orgs","repos_url":"https://api.github.com/users/marklai1998/repos","events_url":"https://api.github.com/users/marklai1998/events{/privacy}","received_events_url":"https://api.github.com/users/marklai1998/received_events","type":"User","site_admin":false},"labels":[{"id":1047737562,"node_id":"MDU6TGFiZWwxMDQ3NzM3NTYy","url":"https://api.github.com/repos/eloytoro/react-screen-size/labels/discussion","name":"discussion","color":"f98531","default":false},{"id":489380670,"node_id":"MDU6TGFiZWw0ODkzODA2NzA=","url":"https://api.github.com/repos/eloytoro/react-screen-size/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-04T07:02:25Z","updated_at":"2018-09-06T10:13:36Z","closed_at":null,"author_association":"NONE","body":"I'm making a responsive layout that has mobile exclusive classes\r\nBut I cannot tell if the screen is sm or not when the page first load,\r\nI have to resize through the breakpoint so it will trigger it\r\n\r\nso is it possible to get the screen size when it init??\r\n\r\nI like the way that your library syntax is similar to redux\r\nso I hope I can stick to this library"},"comment":{"url":"https://api.github.com/repos/eloytoro/react-screen-size/issues/comments/419040950","html_url":"https://github.com/eloytoro/react-screen-size/issues/3#issuecomment-419040950","issue_url":"https://api.github.com/repos/eloytoro/react-screen-size/issues/3","id":419040950,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTA0MDk1MA==","user":{"login":"eloytoro","id":3936773,"node_id":"MDQ6VXNlcjM5MzY3NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/3936773?v=4","gravatar_id":"","url":"https://api.github.com/users/eloytoro","html_url":"https://github.com/eloytoro","followers_url":"https://api.github.com/users/eloytoro/followers","following_url":"https://api.github.com/users/eloytoro/following{/other_user}","gists_url":"https://api.github.com/users/eloytoro/gists{/gist_id}","starred_url":"https://api.github.com/users/eloytoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eloytoro/subscriptions","organizations_url":"https://api.github.com/users/eloytoro/orgs","repos_url":"https://api.github.com/users/eloytoro/repos","events_url":"https://api.github.com/users/eloytoro/events{/privacy}","received_events_url":"https://api.github.com/users/eloytoro/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T10:13:36Z","updated_at":"2018-09-06T10:13:36Z","author_association":"OWNER","body":"Right now youre given the option to set the initial parameters of the screen size by passing the `screenSize` prop to the provider, this should solve your issue.\r\n\r\nHowever it would be very nice to have this calculated automatically at pageload, ill consider adding this as default behavior"}}
{"actor":{"display_login":"eloytoro"}}