__Expected behavior:__
Dynamic values should update.
__Describe the bug:__
Dynamic values don't update.
__Codesandbox link:__
https://codesandbox.io/s/material-demo-xivoe
const styles = {
root: props => ({
"@media print": {
display: props.print
}
})
};
__Versions (please complete the following information):__
This specifically happens with media queries. I can see that instead of updating the media query, it creates a new empty one.
cc @HenriBeck it might be related to the issue we have seen with styled-system and duplicated media queries.
yeah, basically we would need to remove the old one. I think in general there is an issue with creating nested rules inside dynamic rules
Hi
I have the same issue
when I log the sheet output using (sheet.toString) it shows a valid value :

but when I check the element's css from the inspector, it dosen't show the media query rules
@bardouni can you provide a codesandbox so we can check your code?
Usually, there is an alternative syntax where the issue doesn't exist
This also might be fixed with #1144
fixed in https://github.com/cssinjs/jss/pull/1242, releasing in 10.0.1
Most helpful comment
This specifically happens with media queries. I can see that instead of updating the media query, it creates a new empty one.
cc @HenriBeck it might be related to the issue we have seen with styled-system and duplicated media queries.