{"action":"opened","issue":{"url":"https://api.github.com/repos/cssinjs/jss/issues/602","repository_url":"https://api.github.com/repos/cssinjs/jss","labels_url":"https://api.github.com/repos/cssinjs/jss/issues/602/labels{/name}","comments_url":"https://api.github.com/repos/cssinjs/jss/issues/602/comments","events_url":"https://api.github.com/repos/cssinjs/jss/issues/602/events","html_url":"https://github.com/cssinjs/jss/issues/602","id":268123500,"number":602,"title":"[jss-global] Can't change styles dynamically","user":{"login":"RamonBalthazar","id":4910678,"avatar_url":"https://avatars3.githubusercontent.com/u/4910678?v=4","gravatar_id":"","url":"https://api.github.com/users/RamonBalthazar","html_url":"https://github.com/RamonBalthazar","followers_url":"https://api.github.com/users/RamonBalthazar/followers","following_url":"https://api.github.com/users/RamonBalthazar/following{/other_user}","gists_url":"https://api.github.com/users/RamonBalthazar/gists{/gist_id}","starred_url":"https://api.github.com/users/RamonBalthazar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RamonBalthazar/subscriptions","organizations_url":"https://api.github.com/users/RamonBalthazar/orgs","repos_url":"https://api.github.com/users/RamonBalthazar/repos","events_url":"https://api.github.com/users/RamonBalthazar/events{/privacy}","received_events_url":"https://api.github.com/users/RamonBalthazar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-24T17:40:44Z","updated_at":"2017-10-24T17:40:44Z","closed_at":null,"author_association":"NONE","body":"I'm trying to dynamically change the font for `body` from inside my `CustomThemeProvider` using `props` but it works only for the first time, whenever I send new props to `CustomThemeProvider` the body style remains untouched.\r\n\r\nSample code:\r\n\r\n```javascript\r\n...\r\n\r\nconst stylesheet = {\r\n  '@global': {\r\n    body: {\r\n      fontFamily: props => getFontFamily(props.site.styles.font),\r\n    },\r\n  },\r\n};\r\n\r\nexport default injectSheet(stylesheet)(CustomThemeProvider);\r\n```"}}
{"actor":{"display_login":"RamonBalthazar"}}