We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e10cf09 commit 2186ef6Copy full SHA for 2186ef6
1 file changed
src/index.js
@@ -63,18 +63,19 @@ const createStyled = (jss?: Function = jssDefault) => (baseStyles: Object = {})
63
}
64
65
if (dynamicStyles && !dynamicSheet.getRule(this.tagScoped)) {
66
- dynamicSheet.addRule(this.tagScoped, dynamicStyles)
+ dynamicSheet
67
+ .detach()
68
+ .addRule(this.tagScoped, dynamicStyles)
69
dynamicSheet
70
.update(this.tagScoped, this.props)
- .deploy()
71
+ .attach()
72
+ .link()
73
74
75
76
componentWillReceiveProps(nextProps: StyledElementPropsType) {
77
if (dynamicStyles) {
- dynamicSheet
- .update(this.tagScoped, nextProps)
78
+ dynamicSheet.update(this.tagScoped, nextProps)
79
80
81
0 commit comments