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