Open sergnek opened 4 years ago
same issue: https://github.com/cssinjs/jss/issues/1360
same for "^10.3.0".
Also material-ui not involved
I have a change i've been with messing with that should address this, and make createUseStyles / useStyle work in concurrent mode, If you want to try it.
I have run the same issue. It seems like the problem with Function rules (jss-plugin-rule-value-function) and any nested rules (jss-plugin-nested)
Same problem here. Any solution yet?
Been experiencing the same issue, dropping a +1 on this.
Been noticing performance impact from this.
This is a major concern on my application. I see the issue is resolved on #1360, but not merged because of a CI config problem. D= If someone can address the merge issue, I'll be forever in debt.
This is a major concern on my application. I see the issue is resolved on #1360, but not merged because of a CI config problem. D= If someone can address the merge issue, I'll be forever in debt.
It looks like they just need to update the test snapshots to reflect the new code
Expected behavior: Duplicate styles shouldn't be created.
Describe the bug: On every component render, in which useStyles prop changes, new duplicate styles are created. I've managed to reproduce the bug in Codesandbox. To see it:
Codesandbox link: https://codesandbox.io/s/react-jss-playground-7ftrs?file=/index.js
Versions (please complete the following information):